I've created a data grid with the form designer and set the various column widths and headings. However, when I display the data in the data grid the column widths change back to the default and the headings are the database column headings.
The code I'm using to display the data grid is:
where dg1 is the data grid and ds the dataset.
The only way I can find to get the right headings is to define them in the sql string.
How can I keep my original data grid settings which I did in the form designer.
Thanks,
Ted
The code I'm using to display the data grid is:
Code:
Me.dg1.DataGrid.DataSource = ds.Tables("Asset1")
where dg1 is the data grid and ds the dataset.
The only way I can find to get the right headings is to define them in the sql string.
How can I keep my original data grid settings which I did in the form designer.
Thanks,
Ted