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
AlanPosted Nov 18, 2007, 5:27 AM
I can only think that the data source you're binding to is expecting an int rather than a double.
If it were expecting a double but you gave it an int, then that would be no problem as you can always implicitly convert ints to doubles but not the other way around.