Page 1 of 1

Gridview scrollbars

Posted: Thursday 27th October 2016 3:35pm
by cogier
I want to know if the scrollbars of a GridView are being displayed. Unfortunately the GridView.Scrollbar only reports the setting and not if it is being displayed.

The idea is that if the vertical schrollbar bar is showing I could increase the height of the form until the Scrollbar disappears.

Re: Gridview scrollbars

Posted: Friday 28th October 2016 9:35am
by monteiro
Is it related with the gridview rows count? If so, I think it is possible to resize the form and gridview height by using this.

Re: Gridview scrollbars

Posted: Friday 28th October 2016 11:59am
by cogier
Thanks for this. You have pointed me in the right direction. By using the amount of Rows and multiplying by the height of the Row the Form height required can be calculated.

A sample program is attached.
take1.tar
(500.5 KiB) Downloaded 618 times