Dynamically Created DataGrid's Cancel/Update Button Not firing

  • Thread starter Thread starter Lucas Tam
  • Start date Start date
L

Lucas Tam

Hi all,

I have dyanmically created a datagrid and the cancel/update buttons do not
fire. All buttons are "edit".

Also, it seems the item indexes are off as well.

Does anyone have a tutorial on how to build a dyanmic datagrid and bind the
events properly?
 
Hi all,

I have dyanmically created a datagrid and the cancel/update buttons do
not fire. All buttons are "edit".


I fixed it but I dont' understand why it works.

To make it work, I need to do the following:

Create Grid
Add Grid to PlaceHolder
Bind Data


Not working way:
Create Grid
Bind Data
Add Grid to Place Holder


So why does it work if I databind AFTER adding to the placholder? Does
the late binding have something to do with postbacks?

Thanks.
 
Back
Top