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

ASPxCardViewSettings.ShowHeaderPanel Property

Gets or sets whether the ASPxCardview’s Header Panel is visible.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(false)]
public bool ShowHeaderPanel { get; set; }

Property Value

Type Default Description
Boolean **false**

true, if the Header Panel is visible; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to ShowHeaderPanel
ASP.NET Bootstrap Controls BootstrapCardView
.Settings.ShowHeaderPanel
ASP.NET Web Forms Controls ASPxCardView
.Settings.ShowHeaderPanel
CardViewSettings
.Settings.ShowHeaderPanel
CardViewSettings<CardType>
.Settings.ShowHeaderPanel
MVCxCardView
.Settings.ShowHeaderPanel

Remarks

Use the ShowHeaderPanel property to specify whether the ASPxCardView’s header panel is visible. To display the filter button within the current column’s header or within all columns headers, use the GridDataColumnSettings.AllowHeaderFilter or the ASPxGridSettings.ShowHeaderFilterButton properties, respectively.

Example

WebForms:

<dx:ASPxCardView ID="CardView" runat="server" DataSourceID="CustomersDataSource" Width="100%">
    <Columns>
    ...
    </Columns>
    <Settings ShowHeaderPanel="true" ShowHeaderFilterButton="true" />
</dx:ASPxCardView>

MVC:

var cardView = Html.DevExpress().CardView(settings =>
{
    settings.Name = "CardView";
    settings.CallbackRouteValues = new { Controller = "Home", Action = "CardViewPartial" };
    settings.KeyFieldName = "ID";

    settings.Settings.ShowHeaderPanel = true;
    settings.Settings.ShowHeaderFilterButton = true;
    ...
});
See Also