System.Web.UI.WebControls.ButtonColumn.Text Property

Gets or sets the caption that is displayed in the buttons of the System.Web.UI.WebControls.ButtonColumn object.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue("")]
public virtual string Text { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the ButtonColumn.Text property to specify or determine the caption that is displayed in the buttons of the System.Web.UI.WebControls.ButtonColumn object.

Note:

If you set the ButtonColumn.Text property, all buttons in the System.Web.UI.WebControls.ButtonColumn share the same caption.

Alternatively, you can bind the System.Web.UI.WebControls.ButtonColumn to a field in a data source. This allows you to display different captions for the buttons in the column using the values in the specified field. Set the ButtonColumn.DataTextField property to bind the System.Web.UI.WebControls.ButtonColumn to a field in a data source.

The value of this property is stored in view state.

The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see System.ComponentModel.LocalizableAttribute and ASP.NET Globalization and Localization.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0