Skip to main content
All docs
V24.2

TreeListRowExportingEventArgs.GetRowValue(String) Method

Returns the value of the specified data field in the current row.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public object GetRowValue(
    string fieldName
)

Parameters

Name Type Description
fieldName String

The field name.

Returns

Type Description
Object

The field value.

Remarks

Call the GetRowValue method to get a value of the specified data field in the current row.

async Task ExportXlsx_Click() {
    await MyTreeList.ExportToXlsxAsync("ExportResult", new TreeListXlExportOptions() {
        RowExporting = RowExporting
    });
}
void RowExporting(TreeListRowExportingEventArgs e) {
    // Exports rows whose due date is earlier than January 1, 2018
    if ((DateTime)e.GetRowValue("DueDate") > new DateTime(2018, 1, 1)) {
        e.Cancel = true;
    }
}
See Also