newbeliever
2012-02-09T07:48:05Z
Hi All,

I just want to open this concern regarding iGrid control with this "Invalid value (Overflow)". I don't know what to do with this. Hope somebody enlighten me with this concern.

Regards...
Igor/10Tec
2012-02-09T08:25:01Z
To fix a bug if it is on our side, report the problem description as it is described here:
http://www.10tec.com/Forum/yaf_postst11_Required-info-to-report-a-problem.aspx 

Maybe, it is even not a bug inside iGrid. You may try to enter a big numeric value which cannot be converted to the cell value's data type (say a Long value to Integer).
newbeliever
2012-02-09T08:35:08Z
Yes, I was actually entering a big numeric value in the cell. After hitting Enter Key, it pop up that it was Invalid Value (Overflow). I have no idea on how fix this. Is there a way to accept that big numeric value in the cell?

Thanks!
Igor/10Tec
2012-02-10T07:00:24Z
Then this is the expected behavior but not a bug.

iGrid automatically converts the edited text to a value of the data type of the cell value. Thus, to "fix" the problem, you need to have the corresponding data type in your cell before you edit your cells. If you give us a source code, we'll show how to correct it.

FYI: You can also use the BeforeCommitEdit event to handle this situation if you need your custom error message or want to suppress it at all. Here is the corresponding excerpt from the CHM help file from the topic dedicated to BeforeCommitEdit:

引用:

iGrid automatically converts the edited text in a text box cell to a value of the cell value data type. iGrid shows its standard error message if the user tries to save illegal value in a text box cell and the SilentValidation property is set to False; if this property is set to True, you can programmatically detect the conversion error in this event using the lConvErr parameter. If the error has occurred, this parameter contains a non-zero value which is a standard VB error code.