System.Web.UI.WebControls Namespace DetailsView Class
.NET Framework version 2.0
Sets or retrieves the text displayed in the header row of a DetailsView control.
Inline |
<asp:detailsview headertext = strText ... > |
Script |
DetailsView.HeaderText = strText |
strText |
String specifying the text displayed in the header row of a DetailsView control. |
The property is read/write with no default value.
Use the HeaderText property to specify or determine the text displayed in the header row of a DetailsView control. The header row is displayed at the top of the DetailsView control when either the HeaderText or HeaderTemplate property is set.
To control the style of the header row, use the HeaderStyle
property.
Alternatively, you can define your own custom user interface ( UI ) for the header row by setting the HeaderTemplate property instead of this property.
NOTE: If both the HeaderText and HeaderTemplate properties are set, the HeaderTemplate property takes precedence.
DetailsView Members EmptyDataText HeaderTemplate FooterText