Blazor DataGrid Example - Default Scrolling

DataGrid / Scrolling / Default Scrolling

This sample shows the DataGrid component with horizontal and vertical scrollbars to view the DataGrid content that has been exceeded.

Loading Syncfusion Blazor Server Demos…

When the content exceeds the element width or height, the Blazor DataGrid will display a scrollbar. The vertical and horizontal scrollbars will be displayed based on the criteria listed below.

  • When the total height of the rows in DataGrid exceeds the element height, the vertical scrollbar appears.
  • When the total width of the columns in DataGrid exceeds the element width, the horizontal scrollbar appears.

The Height and Width properties are used to specify the height and width of the DataGrid, respectively. These properties values should be in numeric, pixel (px), or percentage (%) form.

The DataGrid's Height and Width properties are set to 410 and auto respectively, in this demo.

More information about the Scrolling feature can be found in this documentation section.

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