Skip to main content
All docs
V24.2

TreeListExportCustomizeCellEventArgs.GetRowValue(String) Method

Returns the value of a cell in the current row and in the specified data field.

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 cell value.

Remarks

When a data row is being processed (AreaType is set to DataArea), 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