DataGrid::ShowHeader Property

 

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)

public:
property bool ShowHeader {
	virtual bool get();
	virtual void set(bool value);
}

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: