DataGrid / Miscellaneous / Tooltip

Blazor DataGrid Example - Tooltip

Loading Syncfusion Blazor Server Demos…

This sample demonstrates the DataGrid tooltip feature for displaying contextual information on cell hover.

The Blazor DataGrid supports tooltips for both header and content cells through the ShowTooltip property. When enabled, tooltips appear on hover, providing additional context and improving user experience with relevant information.

Customize tooltip content using the TooltipTemplate wrapped within the GridTemplates component. This allows you to create rich, visually enhanced tooltips with custom layouts including images, icons, and additional information.

The TooltipTemplateContext provides access to the following properties for building dynamic tooltips:

  • Value - The content of the hovered cell (column name for headers, cell value for content)
  • RowIndex - The row number of the hovered cell (returns -1 for header cells)
  • ColumnIndex - The column number of the hovered cell
  • Data - The complete row data object (not available for header cells)
  • Column - Column details including field name, header text, and formatting information

In this demo, the tooltip template displays employee information with photographs, icons, and contextual details, demonstrating how to create professional and informative tooltips.

Hover over grid cells to see the custom tooltip content in action.

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