Click here to Skip to main content
15,894,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have made a datagrid which displays 15 blank rows and I want to design it so that after a 16th row of data appears, the datagrid is provided with a vertical scrollbar.
Any help would be appreciated.
Thank You
Arpan
Posted
Updated 15-Aug-11 5:21am
v2
Comments
BobJanova 15-Aug-11 11:26am    
The data grid control will automatically provide scrollbars if it has more content than you need to display. What is wrong with that?

Have a look at the scrollbars property on the gridview control. By default it is set to both so it should appear automatically.
 
Share this answer
 
hey simon thanks for your help
i used this in my program

datagrid.ScrollBars = ScrollBars.Vertical;
and it worked
 
Share this answer
 
Comments
Simon_Whale 15-Aug-11 11:51am    
Your welcome :) glad it worked

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