logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

newbeliever
#1 Posted : Thursday, February 09, 2012 7:48:05 AM(UTC)
newbeliever

Rank: Newbie

Groups: Registered
Joined: 2/9/2012(UTC)
Posts: 2

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
#2 Posted : Thursday, February 09, 2012 8:25:01 AM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 63

Was thanked: 8 time(s) in 8 post(s)
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
#3 Posted : Thursday, February 09, 2012 8:35:08 AM(UTC)
newbeliever

Rank: Newbie

Groups: Registered
Joined: 2/9/2012(UTC)
Posts: 2

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
#4 Posted : Friday, February 10, 2012 7:00:24 AM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 63

Was thanked: 8 time(s) in 8 post(s)
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:

Quote:
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.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.6 RC1 | YAF © 2003-2012, Yet Another Forum.NET
This page was generated in 0.083 seconds.