Is the following code the only way to display a column from a dataset in this DataGrid? Is so, how do you handle dynamic datasets with varying numbers of columns and varying column names? Do I loop through the dataset and define the GridTableStyle before I set the DataGrids.datasource=dataset? If so, any ideas how to dynamically dim ColStyle1, ColStyle2, ColStyle3......
Thanks for your help

Dim GridTableStyle1 As New DataGridTableStyle,ColStyle1 As New DataGridTextBoxColum
ColStyle1.MappingName = "DataSetColumnName
ColStyle1.HeaderText = "Column Name
ColStyle1.Width = 14
GridTableStyle1.GridColumnStyles.Add(ColStyle1
DataGrid1.TableStyles.Add(GridTableStyle1)