DataGrid / Columns / Column Menu

Blazor DataGrid Example - Column Menu

Loading Syncfusion Blazor Server Demos…

Drag a column header here to group its column
1 of 7 pages (75 items)

This sample demonstrates the DataGrid column menu feature, which provides convenient access to column operations.

The Blazor DataGrid column menu appears when you click the menu icon in a column header, providing quick access to various column operations. To enable the column menu, set the ShowColumnMenu property to true.

The column menu's default items are:

  • SortAscending - Sort the current column in ascending order.
  • SortDescending - Sort the current column in descending order.
  • Group - Group records by the current column.
  • Ungroup - Remove grouping by the current column.
  • AutoFit - Automatically adjust the current column width to fit content.
  • AutoFitAll - Automatically adjust all column widths to fit their content.
  • ColumnChooser - Open the column visibility chooser.
  • Filter - Display the filter options as configured in the Type property of the GridFilterSettings component.

In this demo, the column menu is enabled with all available operations including sorting, grouping, filtering, column chooser, and autofit.

For more detailed information about the column menu feature, refer to the column menu 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