protected void C1GridView1_RowDeleting(object sender, C1GridViewDeleteEventArgs e) { DataTable orders = GetDataSet(); DataRow row = orders.Rows.Find(C1GridView1.DataKeys[e.RowIndex].Value); if (row != null) { orders.Rows.Remove(row); orders.AcceptChanges(); UpdateView(); } else { throw new RowNotInTableException(); } }
protected void C1GridView1_RowDeleting(object sender, C1GridViewDeleteEventArgs e) { DataTable orders = GetDataSet(); DataRow row = orders.Rows.Find(C1GridView1.DataKeys[e.RowIndex].Value); if (row != null) { orders.Rows.Remove(row); orders.AcceptChanges(); UpdateView(); } else { throw new RowNotInTableException(); } }
protected void grid_RowDeleting(object sender, C1GridViewDeleteEventArgs e) { }