By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
463,048 Members | 442 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 463,048 IT Pros & Developers. It's quick & easy.

DataGridView Problem

P: 1
I have developed an application in vb.net (Win32 Appl)

I have problem in datagridview

i have uploaded image which where i made a red colored circle
image :-



as u see in image i made red circle which shows that there is empty space
i don't want that empty space but i cant reduce the size of gridview also because sometime data is very large an sometimes its small
so i want to show the data in datagridview without blank space even if my data is to small

in short i want that my all columns will automatically arrange there size according to the size of gridview size
Dec 1 '08 #1
Share this Question
Share on Google+
2 Replies

OuTCasT
100+
P: 374
Set the AutoSizeColumnsMode in the properties of the datagridview to FILL and it should fill up the spaces.
Dec 2 '08 #2

Frinavale
Expert Mod 5K+
P: 9,731
@OuTCasT

In addition to what OutCast has suggested, you could consider docking the DataGridView in it's parent container which will fill that space.
Dec 2 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.