Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft