472,332 Members | 1,142 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,332 software developers and data experts.

Autosize DataGrid columns

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
Nov 22 '05 #1
1 1701
you need to look at DataGrid.TableStyles property (if you are talking Win
form DataGrid).

"Jinx" <ji**@bell.ca> wrote in message
news:OT********************@news20.bellglobal.com. ..
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

Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: | last post by:
How I can autosize a DataGrid after then associate a Datasource=Dataset in Smart Devices applications or Windows forms application?? That same?? ...
1
by: Jinx | last post by:
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...
2
by: Tim Wallace | last post by:
I'm using Visual Studio 2003. Is there a way one can cause columns in a DataGrid to autosize? Also, is there a way to cause the last column to...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer,...
1
by: one | last post by:
When a DataGrid displays the data, all the columns are the same size. How do I get the columns to adjust their width automatically so that the user...
1
by: Silvia | last post by:
H It is possible in a datagrid by code do the columns autosize? Thanks
9
by: Kevin Westhead | last post by:
Can anyone confirm whether or not there are any limits imposed on the widths of autosized columns in a list-view. I've found that the autosizing...
1
by: Gunjan Shah | last post by:
I am developing one Windows application in which i am bindig a data with datagrid. Now i am not able to autosize the columns of datagrid so data...
1
by: SAL | last post by:
How do I get a CELL to autosize a round a Control in a HTML Table? For example, you add a 2 row, 3 column HTML table to your webpage. In the 1st...
0
by: Srinivas Kollipara | last post by:
Hello All, I am having trouble auto resizing columns in DataGrid on windows form. The datasource for datagrid is an ArrayList. Can some please...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.