get column names from typed dataset and display in combobox

cwfontan

Active member
Joined
Jan 9, 2009
Messages
35
Programming Experience
1-3
I have 2 table in my dataset i want to add both table column names to the combobox.. how can I add the other table to the datacolumncollection?

thanks ;)

'gets column names from typed datset and uses as combobox in datagridview
Dim columns As DataColumnCollection = DataSet1.Tables(1).Columns
Dim column As DataColumn
Dim arrayColumns As New ArrayList
For Each column In columns
arrayColumns.add(column.ColumnName)
Next
Me.Column1.DataSource = arrayColumns
 
Back
Top