Click here to Skip to main content
15,568,965 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a form on which data grid is there i have binded a collection to that data grid. that collection has items say 100 so that data grid expands to all of them.

Tricks applied :
1. mentioned Height : My form is resolution independent. Need to stretch as user wants

Expected behavior : screen should open with a height that can be mentioned and user is allowed to re-size my form.
Posted
Comments
CHill60 21-Jan-15 6:18am    
So what actually happens?
Member 10471385 21-Jan-15 6:24am    
form is stretched to show all item. thus partial form is out of my monitor.

1 solution

have you tried to insert you data grid into a tableLayoutPanel.

You can then dock the tableLayoutPanel and then the datagrid will stretch to the form size.
 
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