Home Forums WinForms controls Xceed Grid for WinForms How can I Know if HorizontalScroll is visible?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #17030 |

    I need to know if HorizontalScroll is visible, how can I do that?

    Imported from legacy forums. Posted by Daní (had 1102 views)

    User (Old forums)
    Member
    Post count: 23064

    To determine if the scrollbars are visible, you will need to compare the ClientRectangle to the DisplayRectangle on the GridControl. The ClientRectangle is the totality of the grid and the DisplayRectangle is the part without the scrollbars nor the borders.

    e.g.:

          Debug.WriteLine( ( gridControl1.ClientRectangle.Height – gridControl1.DisplayRectangle.Height ).ToString() );

    The result will tell you if the horizontal scrollbar is visible or not.

    Imported from legacy forums. Posted by André (had 1871 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.