Dynamically Created DataGrid's Cancel/Update Button Not firing

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?
 
L

Lucas Tam

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.
 

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
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top