Skip to main content

ASPxPopupControlBase.ShowHeader Property

Gets or sets a value that specifies whether a window’s header is displayed.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll


public bool ShowHeader { get; set; }

Property Value

Type Default Description


true if a window’s header is displayed; otherwise, false.


Set the ShowHeader property to false to hide a window header. In this case, set the ASPxPopupControlBase.DragElement property to DragElement.Window to allow end-users to drag the window.


For ASPxPopupControl only:

If the ASPxPopupControl.Windows collection is empty, the ShowHeader property is applied to the default popup window. Otherwise, the ShowHeader property specifies the header visibility for all popup windows from the ASPxPopupControl.Windows collection. In this case, the ShowHeader property’s value can be overridden by using the PopupWindow.ShowHeader property of individual windows.


This example illustrates how to customize an ASPxPopupControl's header container using particular properties.

View Example

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.1, Version=, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head runat="server">
    <form id="form1" runat="server">
        <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Show PopUp" AutoPostBack="false">
            <ClientSideEvents Click="function (s,e) {popup.Show();}" />
    <dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" ClientInstanceName="popup"
        ShowHeader="true" HeaderText="Directed by: Ridley Scott"
        <HeaderImage Url="Images/new.png" AlternateText="No image">
        <HeaderStyle ForeColor="#666677" Font-Size="12px" />
        <ContentStyle ForeColor="#666677" Font-Names="Tahoma" Font-Size="10px" />
            <dx:PopupControlContentControl runat="server">
                <div >
                    When a Roman general is betrayed and his family murdered by a corrupt prince, he
                    comes to Rome as a gladiator to seek revenge.</div>
See Also