Home Forums WinForms controls Xceed Grid for WinForms Color editor Reply To: Color editor

User (Old forums)
Post count: 23064

The DataType cannot be changed at the cell level, so when using different CellEditorManager in the same column, the Column DataType must be compatible to the value needed by the editor.

In your case, you could use an object DataType for that column, and all editors should work fine.  The other alternative is to handle the SettingControlValue and GettingControlValue on CellEditorManager and SettingControlValue on CellViewerManager to convert the value of the editor to a value supported by the cell, and vise versa (e.g. Color.Red.ToString() in case of a string column).

You can also derive from CellEditorManager and override the SetControlValueCore() and GetControlValueCore() methods to obtain the same result.

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