【发布时间】:2014-12-03 04:31:41
【问题描述】:
我在一个 ASP.NET 项目的OnRowCancelingEdit 事件中找到了以下语句,但我不确定它是什么意思:
GridView1.EditIndex = -1;
【问题讨论】:
-
是的编辑事件是从.aspx页面的onrowcancelingedit调用的事件。
-
EditIndex is Gets or sets the index of the row to edit.所以当你没有要编辑的行时你会写 -1 msdn.microsoft.com/en-us/library/…