This documentation is archived and is not being maintained.

DataGrid.ShowHeader Property

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

[Visual Basic]
Public Overridable Property ShowHeader As Boolean
public virtual bool ShowHeader {get; set;}
public: __property virtual bool get_ShowHeader();
public: __property virtual void set_ShowHeader(bool);
public function get ShowHeader() : Boolean;
public function set ShowHeader(Boolean);

Property Value

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.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

DataGrid Class | DataGrid Members | System.Web.UI.WebControls Namespace | HeaderStyle