469,612 Members | 1,674 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,612 developers. It's quick & easy.

DataGridView Problem

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
2 1915
OuTCasT
374 256MB
Set the AutoSizeColumnsMode in the properties of the datagridview to FILL and it should fill up the spaces.
Dec 2 '08 #2
Frinavale
9,735 Expert Mod 8TB
@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.

Similar topics

10 posts views Thread by Henok Girma | last post: by
1 post views Thread by sapkal.manish | last post: by
2 posts views Thread by Rick Shaw | last post: by
1 post views Thread by Jeff | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.