Blazor DataGrid Example - Custom Command Buttons

DataGrid / Columns / Custom Command

This sample demonstrates the DataGrid with custom command button column.

Loading Syncfusion Blazor Server Demos…

By setting the Type property of the GridCommandColumn component to None, the Blazor DataGrid Custom command button can be added to the column. The CommandClicked event can be used to capture end-user clicks, and CommandClickEventArgs can be used to access corresponding row details.

In this demo, the following changes had been made in the DataGrid to use a custom command button in a column.

  • Added a column named View Details and command button configurations given using GridCommandColumn.
  • CommandClicked event is used to capture user clicks.
  • Used the SfDialog component in viewing the user details.
Now click the view icon in the View Details column to see an additional information about the particular row.

More information about the Custom command column feature can be found in this documentation section.

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