Blazor DataGrid Example - Tooltip

DataGrid / Miscellaneous / Tooltip

The Blazor DataGrid supports tooltip for both header and content cells through the ShowTooltip property. When enabled, tooltip appear on hover, providing additional context and enhancing the overall user experience.

Loading Syncfusion Blazor Server Demos…

In this sample, the tooltip template presents a rich and customized tooltip that includes an employee image, icons, and additional contextual information, demonstrating tooltip customization within the DataGrid.

The custom tooltip content is defined by wrapping the TooltipTemplate inside the GridTemplates component, allowing for flexible and visually enhanced designs. Tooltip customization is supported through the TooltipTemplateContext which provides access to the following built-in properties:

  • Value - Shows the content of the hovered cell—either the column name (for headers) or the cell value (for content).
  • RowIndex - Gives the row number of the hovered cell. Returns -1 for header cells.
  • ColumnIndex - Gives the column number of the hovered cell.
  • Data - Provides the full data of the row being hovered. Not available for header cells.
  • Column - Contains details about the column, like field name and formatting.
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