How To add new column to datatable from combobox item

  • Thread starter Thread starter Majed Abbas
  • Start date Start date
M

Majed Abbas

Guest
Hello
i want to add new column to datatable from combobox all items
my code is

Dim newColumn As New Data.DataColumn("Mån", GetType(System.String))

newColumn.DefaultValue = ComboBox1.Items.ToString
dt.Columns.Add(newColumn)

DataGridView3.DataSource = dt


but is not working

column is add but all items are System.Windows.Forms.ComboBox + ObjectCollection
any help thanks

Continue reading...
 
Back
Top