ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.5.2 Assembly / C1.Win.C1FlexGrid Namespace / C1FlexGridBase Class / ScrollBars Property

In This Topic
    ScrollBars Property (C1FlexGridBase)
    In This Topic
    Gets or sets which scroll bars should appear on the control.
    Syntax
    'Declaration
     
    Public Property ScrollBars As ScrollBars
    public ScrollBars ScrollBars {get; set;}
    Remarks

    Scroll bars are displayed only if the contents of the control extend beyond its client area. For example, if C1.Win.C1FlexGrid.Util.BaseControls.ScrollableControl.ScrollBars is set to System.Windows.Forms.ScrollBars.Horizontal, a horizontal scroll bar is displayed only if the control is not wide enough to display all columns at once.

    Even when it has no scrollbars, the control will still scroll to keep the selection visible. If you want to prevent scrolling, handle the BeforeScroll event and set its RangeEventArgs.Cancel parameter to true.

    You can force the control to display scrollbars at all times with the C1.Win.C1FlexGrid.Util.BaseControls.ScrollableControl.ForceScrollBars property.

    You can determine which scrollbars are currently visible with the C1.Win.C1FlexGrid.Util.BaseControls.ScrollableControl.ScrollBarsVisible property.

    See Also