System.Web.UI.WebControls Namespace FormView Class
.NET Framework version 2.0
Sets or retrieves the text displayed in the header row of a FormView control.
Inline |
<asp:formview headertext = strText ... > |
Script |
FormView.HeaderText = strText |
strText |
String specifying the text displayed in the header row of a FormView 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 FormView control. The header row is displayed at the top of the FormView 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.
FormView Members EmptyDataText HeaderTemplate FooterText