DataGridRowClickEventArgs<T> Class

Provides data for the RowClick event.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

public class DataGridRowClickEventArgs<T> :
    EventArgs

Type Parameters

Name Description
T

The data item type.

Remarks

The RowClick event fires when a user clicks a grid's data row. The DataGridRowClickEventArgs<T> object provides the following properties related to this event:

The code below overrides the default single selection behavior when a user needs to select a new row to unselect the previously selected row. This code enables users to click a row to unselect it.

<DxDataGrid @ref="@grid"
            Data="@Vacancies"
            RowClick="@OnRowClick">
    ...
</DxDataGrid>



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

    ...

    if (grid.IsDataRowSelected(args.DataItem) && !args.MouseEventArgs.CtrlKey) {
       grid.SetDataRowSelected(args.DataItem, false);
       args.Handled = true;
    }
}

Inheritance

Object
EventArgs
DataGridRowClickEventArgs<T>
See Also