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
4165
Unable to cast e.Cell.Value to Double ?
posted

Hi,

I have a grid that reads in a bunch of number values from a database. These values are only ever either INT or Decimal(x,x)

When I try this after a UltraGrid AfterCellUpdate

if((Double)e.Cell.Value > 0)

But recieve an error that specific cast is not valid. The type returned by e.cell.value is Decimal and the Value = 3 in this test.

Parents Reply Children