Gridview - Edit,Update,Cancel doesn't work

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?
 

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,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top