Autosize DataGrid columns

  • Thread starter Thread starter Jinx
  • Start date Start date
J

Jinx

After filling data from a SQL server into a DataTable in a DataSet, I set a
DataGrid.DataSource to point to the DataTable. The grid displays the data
but all the columns are the same size. How do I get the colums to adjust
their width automatically so that the user does not have to double-click the
columns header border.

I would apreciate any help.
I'm using VisualBasic .NET v7 - 2003

Thanks
 
you need to look at DataGrid.TableStyles property (if you are talking Win
form DataGrid).
 
Back
Top