public override object Clone()
        {
            TextBoxDataGridViewColumn column = (TextBoxDataGridViewColumn)base.Clone();

            column.CharacterCasing = characterCasing;
            return(column);
        }
        public override void InitializeEditingControl(int rowIndex, object
                                                      initialFormattedValue, DataGridViewCellStyle dataGridViewCellStyle)
        {
            TextBoxDataGridViewControl ctl =
                DataGridView.EditingControl as TextBoxDataGridViewControl;

            DataGridViewColumn dgvc = this.OwningColumn;

            if (dgvc is TextBoxDataGridViewColumn)
            {
                TextBoxDataGridViewColumn rtvc = dgvc as TextBoxDataGridViewColumn;
                ctl.CharacterCasing = rtvc.CharacterCasing;
            }
            ctl.Text = (initialFormattedValue is System.DBNull) ? string.Empty : (string)initialFormattedValue;

            // Set the value of the editing control to the current cell value.
            base.InitializeEditingControl(rowIndex, initialFormattedValue,
                                          dataGridViewCellStyle);
        }