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.
Unfortunately, activation email could not send to your email. Please try again.

Exception in GridComboBoxListBoxHelper.FindKey

Thread ID:

Created:

Updated:

Platform:

Replies:

40000 Jan 23,2006 10:54 AM Jan 23,2006 11:53 AM Windows Forms 1
loading
Tags: GridControl
Erlly Bayuelo
Asked On January 23, 2006 10:54 AM

Hi, In the output window during a debugging in the ide we are noticing that following exception being thrown multiple times and being caught at GridComboBoxListBoxHelper.FindKey (GridCombomBoxCellModel.cs). The exception is: System.FormatException: Input string was not in a correct format. at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Int32.Parse(String s, NumberStyles style, IFormatProvider provider) at System.Convert.ToInt32(String value, IFormatProvider provider) at System.String.System.IConvertible.ToInt32(IFormatProvider provider) at System.Convert.ToInt32(Object value) at System.Data.Common.Int32Storage.CompareToValue(Int32 recordNo, Object value) at System.Data.DataColumn.CompareToValue(Int32 record1, Object value) at System.Data.Index.CompareRecordToKey(Int32 record1, Object[] vals) at System.Data.Index.FindRecordByKey(Object[] key, Boolean findFirst) at System.Data.Index.FindRecords(Object[] key) at System.Data.Index.FindRecords(Object key) at System.Data.DataView.System.ComponentModel.IBindingList.Find(PropertyDescriptor property, Object key) at Syncfusion.Windows.Forms.Grid.GridComboBoxListBoxHelper.FindKey(IList thisList, PropertyDescriptor property, Object key) When would this FindKey() function be called? When ComboBox Cell types are drawn? It seems to be getting called when the grid is being redrawn. Would this function be called everytime a combo box cell is redrawn? maybe I have some invalid values in the list. Any info that would help me eliminate this exception would be appreciated as it is slows down running in debug mode since these multiple exception keep getting piped to the output window. Thanks, Erlly

Administrator [Syncfusion]
Replied On January 23, 2006 11:53 AM

Erlly, what version are you using? We have fixed this for the RTM build for 4.1. The problem is related to empty strings being used for looking up values in the related table and the related table has an Int32 as primary key. Stefan >Hi, >In the output window during a debugging in the ide we are noticing that following exception being thrown multiple times and being caught at GridComboBoxListBoxHelper.FindKey (GridCombomBoxCellModel.cs). >The exception is: >System.FormatException: Input string was not in a correct format. > at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) > at System.Int32.Parse(String s, NumberStyles style, IFormatProvider provider) > at System.Convert.ToInt32(String value, IFormatProvider provider) > at System.String.System.IConvertible.ToInt32(IFormatProvider provider) > at System.Convert.ToInt32(Object value) > at System.Data.Common.Int32Storage.CompareToValue(Int32 recordNo, Object value) > at System.Data.DataColumn.CompareToValue(Int32 record1, Object value) > at System.Data.Index.CompareRecordToKey(Int32 record1, Object[] vals) > at System.Data.Index.FindRecordByKey(Object[] key, Boolean findFirst) > at System.Data.Index.FindRecords(Object[] key) > at System.Data.Index.FindRecords(Object key) > at System.Data.DataView.System.ComponentModel.IBindingList.Find(PropertyDescriptor property, Object key) > at Syncfusion.Windows.Forms.Grid.GridComboBoxListBoxHelper.FindKey(IList thisList, PropertyDescriptor property, Object key) > >When would this FindKey() function be called? When ComboBox Cell types are drawn? It seems to be getting called when the grid is being redrawn. Would this function be called everytime a combo box cell is redrawn? maybe I have some invalid values in the list. > >Any info that would help me eliminate this exception would be appreciated as it is slows down running in debug mode since these multiple exception keep getting piped to the output window. > >Thanks, >Erlly

CONFIRMATION

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.

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.

;