Hello,
I set a cell with numeric editor in the xamDataGrid.
When I erase the content of the cell, it returns DbNull.
How Can I change it, to return Null instead of DbNull?
Thanks in advance,
Max
Hello Max,
Are you using ClearCellContents command? This will clear the cell to its default value (according to the value type).
Have you bound your XamDataGrid to a DataTable? What is the type of that field?
I'm not using ClearCellContents command. The DbNull is returned when I clear the content of the field with the backspace key.
The grid is bound to a collection, not to a DataTable.
The type of the field is int, the editor is xamNumericEditor.