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. Image for the cookie policy date
close icon

Exception in GridComboBoxListBoxHelper.FindKey

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

1 Reply

AD Administrator Syncfusion Team January 23, 2006 04:53 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon