在gridview中按下编辑后执行取消命令

时间:2013-07-02 15:16:10

标签: c# asp.net

我想通过立即调用取消来自动取消gridview编辑功能:

protected virtual void GridView1_OnRowEditing(object sender, GridViewEditEventArgs e)
{
     //cancel gridviews edit
     //hide the visibility one one panel and show the visibility of another populated panel
}

我该怎么做?

1 个答案:

答案 0 :(得分:2)

msdn所述,将Cancel的{​​{1}}属性设置为GridViewEditEventArgs e