Home Forums WinForms controls Xceed Grid for WinForms Case insensitive editing Reply To: Case insensitive editing

User (Old forums)
Member
Post count: 23064

You know I could have saved myself the time by digging a little further. Its still a bit of a hack, but it works.

private void OnSettingControlAppearance( object sender, Xceed.Grid.Editors..CellEditorEventArgs e )
{
Control controlObj = e.Control;
if ( controlObj is Xceed.Editors.WinTextBox )
{
Xceed.Editors.WinTextBox textBox = (Xceed.Editors.WinTextBox) controlObj;
if ( e.Cell.FieldName == “SomeField” )
{
textBox.TextBoxArea.CharacterCasing = CharacterCasing.Upper;
}
}
}

Imported from legacy forums. Posted by Crackajaxx (had 459 views)