Groups | Blog | Home
all groups > asp.net datagrid control > march 2006 >

asp.net datagrid control : Nested Datagrids Events Question


seal
3/22/2006 8:47:30 AM
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?

Elton Wang
3/22/2006 9:59:34 PM
Before MyNewDatagrid's data binding, you should create its event delegate.
And this should also be created before Page_Load.

HTH

[quoted text, click to view]

AddThis Social Bookmark Button