Hi All,
I have a data table which has 4 columns. I want to display 1 column and other columns should be invisible. I want to display this column value in a combo box and I've set its properties as follows.
Is there any way to add the other columns to a collection, hashtable or something directly. (I.e. not one by one, just setting the datasource)VB Code:
cbo.datasource=dt cbo.displaymember= dt.columns(1).Tostring cbo.ValueMember= dt.columns(0).Tostring
Any idea will be highly appreciated.
Thanks





Reply With Quote