问题
How can we programmatically take a GridView-row into Edit-mode using an Edit Command?
Suppose I want to edit the name of the course 'C++'.
How can I do that?
Also see this
回答1:
In the event handler:
gridView.EditIndex = e.NewEditIndex;
gridView.DataBind();
Is that what you're looking for?
来源:https://stackoverflow.com/questions/1301581/asp-net-programmatic-edit