G
Gerry Cook
I set up an edit-update-cancel column , a select column and a delete column
in a new gridview in a usercontrol along with some custom bound columns. I
do the databinding programmatically. ( This is a 1.1 project that has been
converted to 2.0) If I have supplied a custom ID for the user control,
then edit, select and cancel all work properly. After a row is in edit mode
however, both the update and cancel buttons come back with the wrong command
name and fire the wrong handler; they come back as delete which is over four
columns to the right. ( In edit mode the columns for select and delete are
empty, which makes sense.) I have read that you should not supply an ID for
user controls with gridview, however without supplying one, the edit, select
and delete handlers don't work; they never get called in the first place. So
I'm stumped.
This all happens whether i set custom grid view columns or set the
autogenerate properties in the IDE.
Any ideas?
in a new gridview in a usercontrol along with some custom bound columns. I
do the databinding programmatically. ( This is a 1.1 project that has been
converted to 2.0) If I have supplied a custom ID for the user control,
then edit, select and cancel all work properly. After a row is in edit mode
however, both the update and cancel buttons come back with the wrong command
name and fire the wrong handler; they come back as delete which is over four
columns to the right. ( In edit mode the columns for select and delete are
empty, which makes sense.) I have read that you should not supply an ID for
user controls with gridview, however without supplying one, the edit, select
and delete handlers don't work; they never get called in the first place. So
I'm stumped.
This all happens whether i set custom grid view columns or set the
autogenerate properties in the IDE.
Any ideas?