Прочитај на енглеском Уреди

Делите путем


BoundField.HeaderText Property

Definition

Gets or sets the text that is displayed in the header of a data control.

C#
public override string HeaderText { get; set; }

Property Value

The text displayed in the header of a data control. The default value is an empty string ("").

Remarks

Use the HeaderText property to identify a field in a data control with a friendly name. The most common application of the HeaderText property is to provide meaningful column names to data-bound fields in a GridView or DetailsView control.

Applies to

Производ Верзије
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also