views:

571

answers:

2

Is there way to increase the width of the scroll bars for a DataGridView ?

+2  A: 

Both the scrollbars are within the DataGridView's Control collection. You can simply get them from there and try alter it.

leppie
Thanks for the responsePicked up HScrollBar from the DataGridView's Control Collection and tried changing it. But no luck..
AB Kolan
Did you call Refresh after changing?
leppie
The problem is that they are read-only and protected so no modifications there.
Ezekiel Rage
+3  A: 

The only way of doing it is by implementing your own control and replacing the one on the DataGridView. I found this on CodeProject(its VB but still a good example):

Core Custom Scrollbar Class By VectorX

There is also something on the MSDN forums

custom scrollbar for datagridview

Ezekiel Rage