Hi people,
There seems to be a peculiar problem that I just encountered. There is a
combobox that has a datatable as a datasource with 2 different columns bound
to Display and value members. When i try and set a selected value to this
combobox, and this value happens to be the 2nd row in the datatable, I'm
getting an ArgumentOutOfRangeException. Please note that this value is part
of the datatable very much. Also, apart from the 2nd row, all other rows'
data gets selected alright.
Oddly enough this seems to be a problem other people have also been facing.
On googling, I came across at least 2 instances of it:
http://www.dotnet247.com/247referenc...29/148674.aspx
http://www.dotnet247.com/247referenc...29/148796.aspx
Please note that I cannot use the .SelectedIndex property, as this data is
generated at runtime and i need to populate the combo with the corresponding
value and display. I would not be in a position to know the index.
Cheers!
Nick