Welcome Guest Search | Active Topics | Sign In | Register

EO.Grid Edit reports Input String was not in a correct format Options
Mike Webb
Posted: Friday, May 23, 2014 9:37:31 AM
Rank: Newbie
Groups: Member

Joined: 7/18/2012
Posts: 3
I am using EO.Grid with an EditCommandColumn and editting the data in a TextBoxColumn, which is a number(or should be) I can click the Edit/Chg link and change the data value but when I click Update I get:

An unhandled exception occurred: Message: Input string was not in a correct format.
Stack Trace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at EO.Web.Grid.a(String A_0) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint))

I have added many break points to my code but cannot find the code function/sub that is causing this, is it within EO code?
Could you tell me what is going wrong here?

Mike Webb
eo_support
Posted: Saturday, May 24, 2014 8:37:45 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

Do you call raiseItemCommandEvent somewhere in your code? If you do call that method but does not pass a valid itemIndex as the first argument, then you will receive this error.

If that's not the problem, please try to isolate the problem into a test page and post the test page. As soon as we have that we will try to run it here and see what we can find.

Thanks!
Mike Webb
Posted: Tuesday, May 27, 2014 6:26:33 AM
Rank: Newbie
Groups: Member

Joined: 7/18/2012
Posts: 3
I am using the raiseItemCommandEvent event and the fact that I was not setting the index correctly/at all was indeed my problem.

thanks for the quick fix!

Mike
eo_support
Posted: Tuesday, May 27, 2014 10:35:43 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Great. Glad to hear that it's working for you!


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.