Home Forums WinForms controls Xceed Grid for WinForms format data using mask characters with bound data Reply To: format data using mask characters with bound data

User (Old forums)
Post count: 23064

You can try to handle the SettingControlValue and GettingControlValue events of the CellEditorManager and CellViewerManager, so to parse the value and set it in the appropriate format as needed.  This should resolve the problem when the column becomes not editable.  Most likely, this due to an exception that is raised because the value sent to the editor form the cell (SettingControlValue) is not in the right format.

BTW, note that some exceptions are swallowed by the .NET framework and others by the grid.  To be noticed of all exceptions, set the debugger to break on all exception.  Go to Debug Menu -> Exceptions -> Common Language Runtime Exceptions, and select “Thrown” CheckBox.  Make sure the “Enable Just My Code” CheckBox is unselected (Tools Menu -> Options -> Debugging -> General).  By doing this, you should see the exception when the column becomes non editable.

Imported from legacy forums. Posted by André (had 402 views)