Gridview - Edit,Update,Cancel doesn't work

Discussion in 'ASP .Net Web Controls' started by Gerry Cook, Oct 3, 2006.

  1. Gerry Cook

    Gerry Cook Guest

    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?
     
    Gerry Cook, Oct 3, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U3RldmUgS2FsbGFs?=

    CssClass on DataGrid Edit, Update & Cancel buttons

    =?Utf-8?B?U3RldmUgS2FsbGFs?=, Jul 6, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    743
    =?Utf-8?B?U3RldmUgS2FsbGFs?=
    Jul 6, 2004
  2. =?Utf-8?B?SmFjcXVlcyBMZWNsZXJj?=

    RE: Setting CssClass on Edit, Update & Cancel buttons

    =?Utf-8?B?SmFjcXVlcyBMZWNsZXJj?=, Jul 6, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    515
    =?Utf-8?B?SmFjcXVlcyBMZWNsZXJj?=
    Jul 6, 2004
  3. Craig G
    Replies:
    2
    Views:
    689
    Patrick Olurotimi Ige
    Dec 14, 2004
  4. das

    dropdownlist inside a gridview with Edit,Update,Cancel

    das, Sep 18, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    1,041
  5. Marco Liedekerken
    Replies:
    0
    Views:
    1,101
    Marco Liedekerken
    Nov 8, 2006
Loading...

Share This Page