Bind different rows to different data sources in data grid

Discussion in 'ASP .Net' started by AD, Aug 23, 2003.

  1. AD

    AD Guest

    I have a parent-child relationship in db . for a parent P1 there are
    4 children c1 c2 c3 c4
    I want to show the data in data grid. I want the first row of the
    datagrid show the parent row and starting from row2 i want to show
    children, is there any way to bind show one row differently from
    others. Or do i need to use some other control like repeater etc.
    AD, Aug 23, 2003
    #1
    1. Advertising

  2. I think this will be what you want: A datagrid within a datagrid. This
    example uses customers and orders (Parent and child respectively)

    http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_20633175.html

    -fs

    "AD" <> wrote in message
    news:...
    > I have a parent-child relationship in db . for a parent P1 there are
    > 4 children c1 c2 c3 c4
    > I want to show the data in data grid. I want the first row of the
    > datagrid show the parent row and starting from row2 i want to show
    > children, is there any way to bind show one row differently from
    > others. Or do i need to use some other control like repeater etc.
    Francis Shanahan, Aug 23, 2003
    #2
    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. John
    Replies:
    1
    Views:
    293
    =?Utf-8?B?VG9Kbw==?=
    Jul 1, 2004
  2. mr2_93
    Replies:
    1
    Views:
    3,593
    mr2_93
    Oct 2, 2005
  3. Jason James

    Rows the rows of a grid view?

    Jason James, Aug 10, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    393
    Jason James
    Aug 10, 2006
  4. Replies:
    2
    Views:
    365
    Mark Rae
    Feb 10, 2007
  5. et

    Binding a grid to various sources.

    et, Apr 14, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    129
Loading...

Share This Page