This is a migrated thread and some comments may be shown as answers.

Input String not in Correct Format

1 Answer 199 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 2
Brett asked on 10 Apr 2008, 02:07 PM
I have two decimal fields and am using EditForms in RadGrid Prometheus, with AutomaticUpdates/Insert/Delete enabled.

The insert and delete work fine, but on update I get an "Input String not in correct format error"  It seems to have to do with the decimal fields.  I have posted my Stack Trace.  Please advise what I am doing wrong.

Execution Error
Input string was not in a correct format.
  at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
  at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt)
  at System.Decimal.Parse(String s, NumberStyles style, IFormatProvider provider)
  at System.Convert.ToDecimal(String value, IFormatProvider provider)
  at System.String.System.IConvertible.ToDecimal(IFormatProvider provider)
  at System.Convert.ChangeType(Object value, TypeCode typeCode, IFormatProvider provider)
  at System.Web.UI.WebControls.Parameter.GetValue(Object value, String defaultValue, TypeCode type, Boolean convertEmptyStringToNull, Boolean ignoreNullableTypeChanges)
  at System.Web.UI.WebControls.SqlDataSourceView.AddParameters(DbCommand command, ParameterCollection reference, IDictionary parameters, IDictionary exclusionList, String oldValuesParameterFormatString)
  at System.Web.UI.WebControls.SqlDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues)
  at System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback)
  at Telerik.Web.UI.GridTableView.PerformUpdate(GridEditableItem editedItem, Boolean suppressRebind)
  at Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source)
  at Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e)
  at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
  at Telerik.Web.UI.GridEditFormItem.OnBubbleEvent(Object source, EventArgs e)
  at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
  at System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e)
  at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)
  at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
  at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
  at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
  at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
0.0221968155170559 0.000909
Brett

1 Answer, 1 is accepted

Sort by
0
Brett
Top achievements
Rank 2
answered on 10 Apr 2008, 02:25 PM
Fixed using RadInput Numeric Textbox
Tags
Grid
Asked by
Brett
Top achievements
Rank 2
Answers by
Brett
Top achievements
Rank 2
Share this question
or