Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How can I reference a nested datagrid itemdatabound event?

Reply
Thread Tools

How can I reference a nested datagrid itemdatabound event?

 
 
needin4mation@gmail.com
Guest
Posts: n/a
 
      01-25-2006
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.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?RWx0b24gVw==?=
Guest
Posts: n/a
 
      01-25-2006
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.
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How does a nested datagrid reference parent row in master datagrid? John Dalberg ASP .Net Datagrid Control 1 12-20-2005 06:45 PM
Nested Repeaters: ItemDataBound fires in reverse order (hierarchical data) KJ ASP .Net 0 06-21-2005 10:11 PM
DataGrid - ItemDataBound =?iso-8859-1?Q?Andr=E9_Almeida_Maldonado?= ASP .Net 1 07-07-2004 03:02 AM
Datagrid losing changes made in ItemDataBound Tony Middleton ASP .Net 0 04-22-2004 07:27 PM
To all Gurus: How can I edit/update a DataGrid in a DataGrid (nested DataGrid)? Possible? Andreas Klemt ASP .Net Datagrid Control 0 10-08-2003 01:19 AM



Advertisments