Skip to main content

DataGridRowClickEventArgs<T>.Handled Property

Specifies whether the clicked row selection should be canceled.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll


public bool Handled { get; set; }

Property Value

Type Description

true to cancel the clicked row’s selection; otherwise, false.


Clear Row Selection

In single selection mode, a user can do any of the following to clear row selection:

  • Click the selected row with the Ctrl key pressed.
  • Click (and select) another row.

You can use the OnRowClick handler to override the default behavior. For example, to cancel row selection, users should not press Ctrl when they click the row:

<DxDataGrid @ref="@grid"

@code {
    DxDataGrid<Vacancy> grid;
    IEnumerable<Vacancy> Vacancies;

    void OnRowClick(DataGridRowClickEventArgs<Vacancy> args) {
        if (grid.IsDataRowSelected(args.DataItem) && !args.MouseEventArgs.CtrlKey) {
            grid.SetDataRowSelected(args.DataItem, false);
            args.Handled = true;
See Also