Click here to Skip to main content
14,698,691 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello nerds ! :D
(just kidding) I have a little problem. I want to customize vertical scroll bar somehow which always i have some free space in datagridview bottom. For example suppose you have a datagridview and i want to always have a space like margin in bottom such as 100px. How can i do that?

Actually i want some extra space between the datagridview last row and the bottom of the sheet window.(I want it fix and always).
Posted
Updated 9-Feb-12 2:49am
v2
Comments
   
Here is a boring nerdish note for your: please never post anything as a "solution" if it is not. It will be removed, no one gets e-mail notifications. Comment on other posts or use "Improve question".

Thank you for understanding.
--SA

I would search the articles on Code Project to see if anyone else has extended this class in the way you want to, and see if you can find your solution, or find some in depth info on your next steps.
   
Comments
alizadeh91 9-Feb-12 8:02am
   
Thanks :-*
You probably could not find it because people don't need to do it, ever.

Such behavior could disrupt normal scroll bar operation, which is in fact way more complex and critical to the behavior of the control than you might think (for example, think about TreeView with its expanding and shrinking nodes).

I'm not even talking about possible confusion in the users.

It only seems that you want it; in fact, you really want to have this important behavior intact.

Besides, I think you can use your time for much more valuable things.

Good luck,
—SA
   

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