Saturday, April 30, 2011

ASP.NET Gridview Editing

How do I set the EditIndex property of the GridView from the RowCommand event?

Cheers

From stackoverflow
  • You can use this code to set the EditIndex property:

    protected void gridView_RowCommand(object sender, GridViewCommandArgs e)
    {
       gridView.EditIndex = gridView.SelectedIndex;
    }
    

0 comments:

Post a Comment