ASPxDataInsertingEventArgs Class
Provides data for the ASPxGridView.RowInserting event.
Namespace: DevExpress.Web.Data
Assembly: DevExpress.Web.v24.2.dll
Declaration
Remarks
Example
Note
For a full example, refer to the ASPxGridView - Editing an in-memory dataset.
protected void ASPxGridView1_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e) {
ds = (DataSet)Session["DataSet"];
ASPxGridView gridView = (ASPxGridView)sender;
DataTable dataTable = gridView.GetMasterRowKeyValue() != null ? ds.Tables[1] : ds.Tables[0];
DataRow row = dataTable.NewRow();
e.NewValues["ID"] = GetNewId();
IDictionaryEnumerator enumerator = e.NewValues.GetEnumerator();
enumerator.Reset();
while(enumerator.MoveNext())
if(enumerator.Key.ToString() != "Count")
row[enumerator.Key.ToString()] = enumerator.Value;
gridView.CancelEdit();
e.Cancel = true;
dataTable.Rows.Add(row);
}
Inheritance
Object
EventArgs
CancelEventArgs
ASPxDataInsertingEventArgs
See Also