My data collection has some nullable numeric types. While I can edit these OK in the grid (provided I specify the datatype to be the non-nullable equivalent in the DataGridCollectionViewSource), I’ve observed that the editors assigned accept all text.
This contrasts from the behavior you get with default editors assigned for numeric types.
By default, the CellEditor associated with a numeric type doesn’t allow non-numeric input.
Is it possible to define a grid ItemProperty in the DataGridCollectionViewSource and the Column in the DataGridControl for a nullable field in such a way to have the corresponding grid column use the same CellEditor that would be assigned for the equivalent non-nullable numeric type?
Imported from legacy forums. Posted by Richard (had 2376 views)