System.Web.UI.WebControls.CommandField.DeleteText Property

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

Syntax

[System.ComponentModel.Localizable(true)]
public virtual string DeleteText { 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 field is set to ButtonType.Button or ButtonType.Link, use the CommandField.DeleteText property to specify the text to display for a Delete button.

Note:

As an alternative to displaying text for a Delete button, you can display an image by first setting the ButtonFieldBase.ButtonType property to ButtonType.Image and then setting the CommandField.DeleteImageUrl 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