void OnErrorRaised(GridControlEventArgs e) { if (oError != null) { oError(e); } }
protected override void OnCellBeginEdit(DataGridViewCellCancelEventArgs e) { //MessageBox.Show(GroupUniqueID); string message = CheckSecurityPermission(GroupUniqueID); if (message == string.Empty) { base.OnCellBeginEdit(e); } else { e.Cancel = true; GridControlEventArgs cnt = new GridControlEventArgs(); cnt.ErrorMessage = message; if (oError != null) { this.oError(cnt); } } }