System.Web.UI.WebControls.CommandField.EditText Property

Gets or sets the caption for an Edit button in a System.Web.UI.WebControls.CommandField field.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

When the ButtonFieldBase.ButtonType property of a System.Web.UI.WebControls.CommandField object is set to ButtonType.Button or ButtonType.Link, use the CommandField.EditText property to specify the text to display for an Edit button.

Note:

As an alternative to displaying text for an Edit button, you can display an image by first setting the ButtonFieldBase.ButtonType property to ButtonType.Image and then setting the CommandField.EditImageUrl property.

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: 2.0.0.0
Since: .NET 2.0