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.
Gridview scrollbars
Re: Gridview scrollbars
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.
- cogier
- Site Admin
- Posts: 1129
- Joined: Wednesday 21st September 2016 2:22pm
- Location: Guernsey, Channel Islands
Re: Gridview scrollbars
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.
A sample program is attached.