How do I put a gridview row in edit mode programmatically?
You may also need to know how to cancel the edit. Just like you set up the "OnRowEditing" command in the gridview, you need to set up the "OnRowCancelingEdit" command. The backend should look similar to this. (VB)
Sub gridView1_rowCanceling(ByVal sender As Object, ByVal e As GridViewCancelEditEventArgs)
gridView1.EditIndex = -1
BindData() // <-- Whatever procedure you use to bind your data to the gridView
End Sub