DataGrid.ShowHeader Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a value that indicates whether the header is displayed in the DataGrid control.

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

abstract ShowHeader : bool with get, set
override ShowHeader : bool with get, set

Property Value

Type: System.Boolean

true to display the header; otherwise, false. The default value is true.

Set this property to true to display the header in the DataGrid. The appearance of the header is controlled by using the HeaderStyle property.

The following code example demonstrates how to use the ShowHeader property to hide the header on the DataGrid control.

No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: