How to bind multiple datasources to one grid?

Discussion in 'ASP .Net Datagrid Control' started by Paul, Dec 14, 2003.

  1. Paul

    Paul Guest

    How can I bind my grid to more than one datasource - that is the
    question. Right now I bind to a DataView table that has a single
    DataTable as its source. Fine. Then I add a DropDownList to one of the
    template columns EditMode that is populated from a separate table. This
    is where the problem begins. I have two tables in the DataSet now, and
    in the _EditCommand event handler I can't figure out how to change the
    binding from a single table datasource to multi-table source.

    I don't think this is a case for a DataRelations, right? I also want to
    bind a column with a DateBox, for instance, and it seems like this has
    nothing to do with relations and joins.

    Thanks for your advice.

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Paul, Dec 14, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jim Heavey

    Multiple Datasources - DataGrid

    Jim Heavey, Nov 11, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    3,188
    makarand_tj
    May 13, 2006
  2. Fred
    Replies:
    1
    Views:
    786
    =?Utf-8?B?Q3VydF9DIFtNVlBd?=
    Sep 13, 2005
  3. pete leg
    Replies:
    2
    Views:
    8,508
    Robert Klemme
    Sep 21, 2006
  4. Larry Bud

    Multiple datasources in 1 table

    Larry Bud, Dec 16, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    522
    Michael Tkachev
    Dec 19, 2006
  5. =?Utf-8?B?bXVzb3NkZXY=?=

    multiple asp:content's requires multiple datasources?

    =?Utf-8?B?bXVzb3NkZXY=?=, Feb 19, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    486
    Walter Wang [MSFT]
    Feb 21, 2007
Loading...

Share This Page