B
Bill Gower
I have a combo box in which I want to display the distinct values in a field
in a table.
Depending on the table name and the field name entered by the user, I build
an sql statement
_Sql = "Select distinct " + _fieldName + " from " + _tableName
and fill a dataset with the results
How do I bind this to a combobox?
cbFieldValues.DataSource = ds.Table[0].DataSet;
cbFieldValues.DisplayMember = ?;
cbFieldValues.DisplayValue = ?;
Thanks
Bill
in a table.
Depending on the table name and the field name entered by the user, I build
an sql statement
_Sql = "Select distinct " + _fieldName + " from " + _tableName
and fill a dataset with the results
How do I bind this to a combobox?
cbFieldValues.DataSource = ds.Table[0].DataSet;
cbFieldValues.DisplayMember = ?;
cbFieldValues.DisplayValue = ?;
Thanks
Bill