Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Nested Datagrids Events Question

Reply
Thread Tools

Nested Datagrids Events Question

 
 
seal
Guest
Posts: n/a
 
      03-22-2006
I was struggling with a nested control event not firing and I found the
culprit to be the following line in my code behind,
e.Item.Cells[2].Controls.Add(MyNewDatagrid);

Is there a way to add a datagrid this way, and still get the events?

Thanks
 
Reply With Quote
 
 
 
 
Elton Wang
Guest
Posts: n/a
 
      03-23-2006
Before MyNewDatagrid's data binding, you should create its event delegate.
And this should also be created before Page_Load.

HTH

"seal" <> wrote in message
news:597AC749-CB1C-4E67-9CE3-...
>I was struggling with a nested control event not firing and I found the
> culprit to be the following line in my code behind,
> e.Item.Cells[2].Controls.Add(MyNewDatagrid);
>
> Is there a way to add a datagrid this way, and still get the events?
>
> Thanks



 
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
Nested datagrids -- events not handled correctly Steve Hershoff ASP .Net Datagrid Control 6 08-30-2006 12:20 AM
Nested datagrids -- events not handled correctly Steve Hershoff ASP .Net 6 08-30-2006 12:20 AM
Events Events Events Please Help Chris ASP .Net Web Controls 0 08-30-2005 08:21 PM
Nested DataGrids Dave ASP .Net 1 07-15-2003 05:03 PM
Re: Nested Datagrids Juliano Bortolozzi ASP .Net 0 07-14-2003 05:28 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57