Quote:
1. I have to click the Edit Link twice to get it to fire
If you are binding your
GridView
at
Page_Load
event, then make sure to wrap your code for binding within
!IsPostback
block:
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
}
}
Quote:
2. When it does fire the edit fields are blank instead of containing the text to be edited
the Delete and the ADD actions work without issue
Make sure that you are repopulating your
GridView
at
RowEditing
right after you set the
NewEditIndex
. For example:
protected void GridViewEmployee_RowEditing(object sender, GridViewEditEventArgs e)
{
GridViewEmployee.EditIndex = e.NewEditIndex;
}