Joaquim  Correia

Joaquim Correia

  • NA
  • 9
  • 23.3k

DataGrid TextBox does not accept Double values

Nov 17 2007 6:41 AM

Hello,

I have a DataGrid with a TextBox wich represents a double value. If this double holds an integer: no problem, i can put there 1, 10, 100 or 100000000 and i get no error.

Instead if i put there a fractionary number, ex: 0,1 or 0,01 it throws an exception that i can catch in "dataGridView1_DataError" with a message something like "Value too big or too small for Int32.", but where did DataGridView got the idea that this value should be an Int?

Thank you,

Joaquim


Answers (1)