Reputation: 58060
How do I set the EditIndex property of the GridView from the RowCommand event?
Cheers
Upvotes: 0
Views: 444
Reputation: 51478
You can use this code to set the EditIndex property:
protected void gridView_RowCommand(object sender, GridViewCommandArgs e)
{
gridView.EditIndex = gridView.SelectedIndex;
}
Upvotes: 1