burntsugar
burntsugar

Reputation: 58060

ASP.NET Gridview Editing

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

Cheers

Upvotes: 0

Views: 444

Answers (1)

Jose Basilio
Jose Basilio

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

Related Questions