We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Reg- GridDataBound Control

Thread ID:





40306 Jan 31,2006 11:46 AM UTC Jan 31,2006 02:57 PM UTC WinForms 1
Tags: GridControl
Anna Srinivasan
Asked On January 31, 2006 11:46 AM UTC

Hi, In my form i have grid databound control. DataSource for the control is datatable. DataTable Contains two column and my grid also contains two columns. Columns data type are double. In my grid let say for example, type 10 and come to next row and then go back to the same cell delete 10 and try to come out of the cell. While i am doing like this i am getting following exception. System.ArgumentException: System.FormatException: Input string was not in a correct format. at System.Number.ParseDecimal(String s, NumberStyles style, NumberFormatInfo info) 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.ToDecimal(Object value) at System.Data.Common.DecimalStorage.Set(Int32 record, Object value) at System.Data.DataColumn.set_Item(Int32 record, Object value)Couldn''t store <> in YIELD Column. Expected type is Decimal. at System.Data.DataColumn.set_Item(Int32 record, Object value) at System.Data.DataRow.set_Item(DataColumn column, Object value) at System.Data.DataRowView.SetColumnValue(DataColumn column, Object value) at System.Data.DataColumnPropertyDescriptor.SetValue(Object component, Object value) at Syncfusion.Windows.Forms.Grid.GridModelDataBinder.SaveCellInfo(GridSaveCellInfoEventArgs e) catched at Syncfusion.Windows.Forms.Grid.GridModelDataBinder.SaveCellInfo(GridSaveCellInfoEventArgs e) in :line 0 Same exception i am getting in the message box also. How do i handle this exception, I dont want user see the exception in debug window as well as messagebox Help me on this. Thanks, Anna

Administrator [Syncfusion]
Replied On January 31, 2006 02:57 PM UTC

Hi Anna, Please refer the attached sample and see if that helps. Regards, Calvin.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon