private void grid_DataError(object sender, DevComponents.DotNetBar.SuperGrid.GridDataErrorEventArgs e) { grid.PrimaryGrid.ActiveCell.CancelEdit(); }
/// <summary> /// Handles invocation of DataError events /// </summary> internal bool DoDataErrorEvent(GridPanel gridPanel, GridCell gridCell, Exception exception, DataContext errorContext, ref object value, ref bool throwException, ref bool retry) { if (DataError != null) { GridDataErrorEventArgs ev = new GridDataErrorEventArgs(gridPanel, gridCell, exception, errorContext, value); DataError(this, ev); value = ev.Value; throwException = ev.ThrowException; retry = ev.Retry; return (ev.Cancel); } return (false); }