How can I reference a nested datagrid itemdatabound event?

Discussion in 'ASP .Net' started by needin4mation@gmail.com, Jan 25, 2006.

  1. Guest

    Hi, I have a datalist. In this datalist I have a datagrid. The
    datalist is the master. The datagrid is the detail. It works fine. I
    populate the datagrid inside of the datalist using the datalist's
    itemdatabound event.

    Now I need to do some work in the itemdatabound event of the datagrid
    that is nested. I can't seem to reference it. How can I reference it
    so that they page knows to look for that event? How can I get to the
    itemdatabound event of the nested datagrid?

    Thank you for any help.
    , Jan 25, 2006
    #1
    1. Advertising

  2. In DataList_ItemDataBound event

    DataGrid grid = e.Item.FindControl("datgrid_id") as DataGrid;

    HTH

    Elton Wang


    "" wrote:

    > Hi, I have a datalist. In this datalist I have a datagrid. The
    > datalist is the master. The datagrid is the detail. It works fine. I
    > populate the datagrid inside of the datalist using the datalist's
    > itemdatabound event.
    >
    > Now I need to do some work in the itemdatabound event of the datagrid
    > that is nested. I can't seem to reference it. How can I reference it
    > so that they page knows to look for that event? How can I get to the
    > itemdatabound event of the nested datagrid?
    >
    > Thank you for any help.
    >
    >
    =?Utf-8?B?RWx0b24gVw==?=, Jan 25, 2006
    #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. Dave

    ItemDataBound event of DataGrid

    Dave, Oct 7, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    2,934
    Scott Allen
    Oct 7, 2004
  2. MattB
    Replies:
    4
    Views:
    21,220
  3. =?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?=

    Datagrid ItemDatabound event ??

    =?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?=, Nov 21, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    2,072
    Eliyahu Goldin
    Nov 21, 2005
  4. GaryDean
    Replies:
    1
    Views:
    8,674
    Walter Wang [MSFT]
    Aug 18, 2006
  5. NH
    Replies:
    2
    Views:
    515
    Andrew L. Van Slaars
    Dec 17, 2004
Loading...

Share This Page