Skip to main content

DxSummaryItemBase<TModel>.Visible Property

Specifies whether the summary item is visible.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(true)]
[Parameter]
public bool Visible { get; set; }

Property Value

Type Default Description
Boolean true

true if the item is visible; otherwise, false.

Remarks

To calculate a total or group summary in the Data Grid, add a DxDataGridSummaryItem object to the TotalSummary or GroupSummary collection. Use the Visible property to show/hide the summary item.

<DxDataGrid Data="@Orders">
    @*...*@
    <TotalSummary>
        <DxDataGridSummaryItem Field=@nameof(Order.UnitPrice)
                               SummaryType=SummaryItemType.Sum
                               Visible="false"/>
    </TotalSummary>
</DxDataGrid>
See Also