Skip to main content
A newer version of this page is available. .

GridCustomizeGroupValueDisplayTextEventArgs Class

Contains data for the CustomizeGroupValueDisplayText event.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public class GridCustomizeGroupValueDisplayTextEventArgs

Remarks

Use GridCustomizeGroupValueDisplayTextEventArgs (Value , DisplayText, and so on) to specify the group value’s display text and access other grid data.

The example below illustrates how to display a dollar sign before the group value:

<DxGrid Data="GridDataSource"
        ShowGroupPanel="true"
        CustomizeGroupValueDisplayText="Grid_CustomizeGroupValueDisplayText" >
    <Columns>
        <DxGridDataColumn FieldName="ProductId" DisplayFormat="d" />
        <DxGridDataColumn FieldName="UnitPrice" />
        <DxGridDataColumn FieldName="Quantity" />
        <DxGridDataColumn FieldName="Discount" DisplayFormat="p0" />
    </Columns>
</DxGrid>

@code {
@* ... *@
    void Grid_CustomizeGroupValueDisplayText(GridCustomizeGroupValueDisplayTextEventArgs e) {
        if (e.FieldName == "UnitPrice")
            e.DisplayText = string.Format(" ${0}", e.Value); 
    }
}

DevExpress Blazor Grid - Customize Group Value

Inheritance

Object
GridCustomizeGroupValueDisplayTextEventArgs
See Also