Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
495
DbNull in numeric editor
posted

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

Parents
  • 69686
    posted

    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?

Reply Children