Пример #1
0
 void OnErrorRaised(GridControlEventArgs e)
 {
     if (oError != null)
     {
         oError(e);
     }
 }
Пример #2
0
        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);
                }
            }
        }
Пример #3
0
 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); }
     }
 }
Пример #4
0
 void OnErrorRaised(GridControlEventArgs e)
 {
     if (oError != null)
     {
         oError(e);
     }
 }