Exemplo n.º 1
0
        public override void InitializeEditingControl(int rowIndex, object initialFormattedValue, DataGridViewCellStyle dataGridViewCellStyle)
        {
            base.InitializeEditingControl(rowIndex, initialFormattedValue, dataGridViewCellStyle);
            EditBox = DataGridView.EditingControl as fmDataGridViewNumericalTextBoxEditingControl;
            // ReSharper disable PossibleNullReferenceException
            EditBox.Height = OwningRow.Height;
            string stringInCell = Convert.ToString(Value);

            EditBox.Text = stringInCell;
            // ReSharper restore PossibleNullReferenceException
        }
Exemplo n.º 2
0
 public override void DetachEditingControl()
 {
     base.DetachEditingControl();
     EditBox = null;
 }