Autosize DataGrid columns

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
 
N

Norman Yuan

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top