I've got a form with a DataGridView bound to a BindingSource on the form. I want to specify the columns and the column bindings at run time. I grid shows as many rows as there are in the DataSet but the columns don't show any values.
I'm doing the following.
HTML Code:
Dim testForm As New TestForm()
testForm.TestGrid.Columns.Add("Code", "Code")
testForm.TestGrid.Columns.Add("Name", "Name")
testForm.TestGrid.Columns.Add("Type", "Type")
testForm.TestBindingSource.DataSource = productDataSet
productDataSet is a typed Dataset.
Thanks for your help.