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
|
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!
|
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
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Great. Glad to hear that it's working for you!
|