GridView - Make EditIndex = -1 After Update |
|
Answered By
Moderator1
on
12/11/2009 10:10:56 PM |
|
|
|
|
Hi,
Everything is fine with your code. After you update successfully, you need to do as below,
GridView1.EditIndex = -1;
BindGrid();
Remove the below 2 lines of code,
"GridViewCancelEditEventArgs e1 = new GridViewCancelEditEventArgs(e.RowIndex);
this.GridView1_RowCancelingEdit(sender, e1); "
Rest is fine. |
|
|
|