Skip to main content
All docs
V25.1
  • DxGrid.HighlightRowOnHover Property

    Specifies whether to highlight a data row when a user hovers the mouse pointer over it.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [DefaultValue(false)]
    [Parameter]
    public bool HighlightRowOnHover { get; set; }

    Property Value

    Type Default Description
    Boolean false

    true to highlight data rows on hover; otherwise, false.

    Remarks

    The following example highlights data rows in the Grid component when a user hovers the mouse pointer over them:

    DevExpress Blazor Grid - Highlight Row on Hover

    @inject WeatherForecastService ForecastService
    
    <DxGrid Data="@Data" HighlightRowOnHover="true">
        <Columns>
            <DxGridDataColumn FieldName="Date" DisplayFormat="D" />
            <DxGridDataColumn FieldName="TemperatureC" Width="150px" />
            <DxGridDataColumn FieldName="Forecast" />
            <DxGridDataColumn FieldName="CloudCover" />
        </Columns>
    </DxGrid>
    
    @code {
        object Data { get; set; }
    
        protected override void OnInitialized() {
            Data = ForecastService.GetForecast();
        }
    }
    

    Implements

    See Also