Skip to main content
All docs
V24.1

TreeListRowClickEventArgs.Column Property

Returns the column that contains the clicked cell.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public ITreeListColumn Column { get; }

Property Value

Type Description
ITreeListColumn

A TreeList column.

Remarks

The following example displays the column caption that corresponds to the clicked cell:

@inject EmployeeTaskService EmployeeTaskService

<DxTreeList Data="TreeListData" KeyFieldName="Id" ParentKeyFieldName="ParentId" RowClick="OnRowClick">
    <Columns>
        <DxTreeListDataColumn FieldName="Name" Caption="Task" />
        <DxTreeListDataColumn FieldName="EmployeeName" Caption="Employee Name" />
        <DxTreeListDataColumn FieldName="StartDate" Caption="Start Date" />
        <DxTreeListDataColumn FieldName="DueDate" Caption="Due Date" />
    </Columns>
</DxTreeList>

@Alert

@code {
    List<EmployeeTask> TreeListData { get; set; }
    public string Alert { get; set; } = "";

    protected override void OnInitialized() {
        TreeListData = EmployeeTaskService.GenerateData();
    }
    void OnRowClick(TreeListRowClickEventArgs e) {
        Alert = $"You clicked a cell in the {e.Column.Caption} column.";
    }
}

TreeList - Row Click

See Also