Пример #1
0
        public override void InitializeEditingControl(int rowIndex, object initialFormattedValue, DataGridViewCellStyle dataGridViewCellStyle)
        {
            base.InitializeEditingControl(rowIndex, initialFormattedValue, dataGridViewCellStyle);
            MyDataGridViewTextBoxEditingControl myDataGridViewTextBoxEditingControl = base.DataGridView.EditingControl as MyDataGridViewTextBoxEditingControl;

            if (myDataGridViewTextBoxEditingControl != null)
            {
                myDataGridViewTextBoxEditingControl.MaxByteLength = this.MaxByteLength;
            }
        }
Пример #2
0
 private bool method_1(int int_0)
 {
     if (int_0 != -1 && base.DataGridView != null)
     {
         MyDataGridViewTextBoxEditingControl myDataGridViewTextBoxEditingControl = base.DataGridView.EditingControl as MyDataGridViewTextBoxEditingControl;
         if (myDataGridViewTextBoxEditingControl != null)
         {
             return(int_0 == ((IDataGridViewEditingControl)myDataGridViewTextBoxEditingControl).EditingControlRowIndex);
         }
         return(false);
     }
     return(false);
 }