Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[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();
    }
}
See Also