应该用编辑的方法,一系列一共有3个
protected void myGridView_RowEditing(object sender, GridViewEditEventArgs e)
{
myGridView.EditIndex = e.NewEditIndex;
Binding();
}
protected void myGridView_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
//myGridView.DataKeys[e.RowIndex].Values[0]
}
protected void myGridView_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
myGridView.EditIndex = -1;
Binding();
}
Binding()是绑定GridView的方法
[此贴子已经被作者于2007-5-13 12:36:38编辑过]