Home Forums WinForms controls Xceed Grid for WinForms How can I change the DataType after column is created? Reply To: How can I change the DataType after column is created?

Xceed Support
Member
Post count: 5658

Hi Mike,

You cannot change the DataType of an Xceed Column. A possible workaround is to delete the column you want to change and then recreate it with the desired dataType before adding it to the Columns collection of your GridControl instance.

The display of the field value is handled by the CellViewerManager whereas the editing is taken care by the CellEditorManager. Default types will have automatically the proper editor and viewer: for instance a string will be displayed as a TextBlock and be editable via a TextEditor.

For user defined type, it is your responsibility to provide the appropriate manager classes. Moreover, you might need to refresh your grid after doing the process.

 

Imported from legacy forums. Posted by Mohamed [Xceed] (had 392 views)