Nested Datagrids Events Question

S

seal

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
 
E

Elton Wang

Before MyNewDatagrid's data binding, you should create its event delegate.
And this should also be created before Page_Load.

HTH
 

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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top