We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Scroll Bar

Hi, Is there a property that will tell me if the vertical scroll bar is present? And the width of this scroll bar? Thanks, Steve

1 Reply

AD Administrator Syncfusion Team October 28, 2004 05:55 PM UTC

The width of the scrollbar is SystemInformation.VerticalScrollbarWidth. You can check this.gridControl1.VScroll to test whether it is visible or not. But if you are trying to determine the with of the grid without scrollbars (whether or not they are present), you can use either grid.ClientSize or grid.ClientRectangle. These properties are automatically adjusted for the scrollbars whether or not they are present.

Live Chat Icon For mobile
Up arrow icon