asp.net.ph

DetailsView.HeaderText Property

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.

Syntax


Inline <asp:detailsview headertext = strText ... >
Script DetailsView.HeaderText = strText

Property Value


strText String specifying the text displayed in the header row of a DetailsView control.

The property is read/write with no default value.

Remarks

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.

See Also

DetailsView Members   EmptyDataText   HeaderTemplate   FooterText Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph