在gridview自定义编辑按钮:
protected void gvProList_RowEditing(object sender, GridViewEditEventArgs e)
{
this.gvProList.EditIndex = e.NewEditIndex;
this.bindData();
}
自定义取消:
protected void gvProList_RowCancelingEdit1(object sender, GridViewCancelEditEventArgs e)
{
gvProList.EditIndex = -1;
bindData(); //最后还要重新绑定,否则还是呈现"更新"和"取消"
}
自定义更新:
protected void gvProList_RowUpdating(object sender, GridViewUpdateEventArgs e)
{