How can I reference a nested datagrid itemdatabound event?

N

needin4mation

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.
 
G

Guest

In DataList_ItemDataBound event

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

HTH

Elton Wang
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top