Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a datagridview inside a panel and i am populating the data now i want to show when less data is there DGV should be resized for less data and for large data also.

check the image below
http://postimg.org/image/ulpa6m4np/[^]

I dont want to show the below part of the grid.
Posted
Updated 6-Jul-15 0:50am
v3

1 solution

The properties Dock, Anchor, Padding and Margin are your friends here. They are designed to make almost all resizing-by-hand worthless
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900