Skip to main content
A newer version of this page is available. .

ScrollBarMode Enum

Lists values that specify a scroll bar’s display mode.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public enum ScrollBarMode

Members

Name Description
Auto

The component automatically shows a scrollbar when the content size exceeds the component size itself.

Hidden

The scrollbar is hidden.

Visible

The scrollbar is visible.

Related API Members

The following properties accept/return ScrollBarMode values:

Remarks

Horizontal scroll bar:

Data Grid - Horizontal scrolling

Note

You should specify the Width property for all Data Grid columns to enable the horizontal scroll bar.

Vertical scroll bar:

Data Grid - Vertical scrolling

<DxDataGrid Data="@DataSource" 
            HorizontalScrollBarMode="ScrollBarMode.Visible"         
            VerticalScrollBarMode="ScrollBarMode.Auto" 
            VerticalScrollableHeight="300">
    @* ... *@
</DxDataGrid>

Run Demo: Data Grid - Scrolling

See Also