J
Jim Heavey
If I set the I change the DropDownStyle propety of a ComboBox to
DropDownList, can the the SelectedIndex propety ever be a -1? It seems no
matter what I do, when I bind the comboBox to a datasource and set the
DropDownStyle to DropDownList, it always shows the first row value.
When this control is bound to a datasource (DataTable) and the ValueMember
and Display Member properties are set appropriately, when I attempt to
retrieve the SelectedValue from the ComboBox, rather then retrieving the
value, as I expected and as I believe the documentation states it will, I
get "System.Data.DataRowView" being returned. What am I doing wrong?
DropDownList, can the the SelectedIndex propety ever be a -1? It seems no
matter what I do, when I bind the comboBox to a datasource and set the
DropDownStyle to DropDownList, it always shows the first row value.
When this control is bound to a datasource (DataTable) and the ValueMember
and Display Member properties are set appropriately, when I attempt to
retrieve the SelectedValue from the ComboBox, rather then retrieving the
value, as I expected and as I believe the documentation states it will, I
get "System.Data.DataRowView" being returned. What am I doing wrong?