Gridview scrollbars

Post Reply
User avatar
cogier
Site Admin
Posts: 101
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Gridview scrollbars

Post by cogier » Thursday 27th October 2016 3:35pm

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.

monteiro
Posts: 4
Joined: Monday 26th September 2016 11:40am

Re: Gridview scrollbars

Post by monteiro » Friday 28th October 2016 9:35am

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.

User avatar
cogier
Site Admin
Posts: 101
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: Gridview scrollbars

Post by cogier » Friday 28th October 2016 11:59am

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 16 times

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests