GridView control enters edit mode when I click Edit link twice

Discussion in 'ASP .Net Web Controls' started by Jaime Stuardo, Apr 7, 2006.

  1. Hi all..

    I have a GridView control in an ASP.NET 2.0 page. I added a column that
    contains edit, update, cancel buttons. Because I did that, I had to handle
    RowEditing event or an exception was thrown.

    Well... this is the body of the RowEditing event:

    protected void gvParametros_RowEditing(object sender, GridViewEditEventArgs
    e)
    {
    gvParametros.EditIndex = e.NewEditIndex;
    }

    The fact is that when page is loaded and I click the edit link, page is
    refreshed but GridView doesn't enter edit mode. When I press edit link
    again, GridView enters edit mode.

    any help to solve this behavior would be greatly appreciated

    Thanks
    Jaime
     
    Jaime Stuardo, Apr 7, 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. Angel
    Replies:
    1
    Views:
    409
    Alvin Bruney
    Jan 1, 2004
  2. mike parr
    Replies:
    1
    Views:
    478
    Marina
    May 20, 2004
  3. sklett

    press cancel twice to get out of edit mode

    sklett, Jan 16, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    143
    sklett
    Jan 16, 2004
  4. Frank Kurka
    Replies:
    8
    Views:
    312
  5. Daniish
    Replies:
    2
    Views:
    245
    Thomas 'PointedEars' Lahn
    Jun 13, 2008
Loading...

Share This Page