ShowHeaderWhenEmpty Property
Collapse the table of content
Expand the table of content

GridView.ShowHeaderWhenEmpty Property

.NET Framework 4.6 and 4.5

Gets or sets a value that indicates whether the heading of a column in the GridView control is visible when the column has no data.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public virtual bool ShowHeaderWhenEmpty { get; set; }

Property Value

Type: System.Boolean

true if the header is visible; otherwise, false.

.NET Framework
Available since 4.0
Return to top
© 2015 Microsoft