Hi
I have a DataGridView in C# which is bound to a datasource, which is an array of a user defined class. Some of the members of this class are floating point numbers. All the column in the datagrid are populated nicely when the form is loaded.
But when I edit any column (in the datagridview) that is associated with a float data type with a value of 0, I get an Exception - "Input String was not in the correct format". Any idea, why? If I type any non-zero floating point numbers, I do not get any exception and all is well.
I appreciate if someone could help me identify why I get the exception when I enter 0 onto a datagridview column with underlying type to be floating point number. What is the best way to handle this exception?
Thanks in advance for any suggestion
Kelly
					I have a DataGridView in C# which is bound to a datasource, which is an array of a user defined class. Some of the members of this class are floating point numbers. All the column in the datagrid are populated nicely when the form is loaded.
But when I edit any column (in the datagridview) that is associated with a float data type with a value of 0, I get an Exception - "Input String was not in the correct format". Any idea, why? If I type any non-zero floating point numbers, I do not get any exception and all is well.
I appreciate if someone could help me identify why I get the exception when I enter 0 onto a datagridview column with underlying type to be floating point number. What is the best way to handle this exception?
Thanks in advance for any suggestion
Kelly