DataGrid / Scrolling / Default Scrolling

Blazor DataGrid Example - Default Scrolling

Loading Syncfusion Blazor Server Demos…

This sample demonstrates the DataGrid component with horizontal and vertical scrollbars for viewing content that exceeds the container dimensions.

The Blazor DataGrid displays scrollbars automatically when content exceeds the available space. Scrollbar visibility is determined as follows:

  • The vertical scrollbar appears when the total height of DataGrid rows exceeds the element height.
  • The horizontal scrollbar appears when the total width of DataGrid columns exceeds the element width.

Use the Height and Width properties to specify the DataGrid dimensions. These properties accept numeric values, pixel (px), or percentage (%) formats.

In this demo, the DataGrid's Height is set to 410 and Width is set to auto.

For more detailed information about scrolling, refer to the scrolling documentation.

Transform your Blazor web apps today with Syncfusion® Blazor components
145+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE