2
我有GridView與連接的SqlDataSource,我想取消更新行時,我的情況是錯誤的OnRowUpdating事件?怎麼做?謝謝。ASP.NET GridView如何取消更新
我有GridView與連接的SqlDataSource,我想取消更新行時,我的情況是錯誤的OnRowUpdating事件?怎麼做?謝謝。ASP.NET GridView如何取消更新
嘗試
protected void Page_Load(object sender, EventArgs e)
{
GridView1.RowUpdating += new GridViewUpdateEventHandler(GridView1_RowUpdating);
}
void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
e.Cancel = true;
}
什麼條件是假的? – Tim