Back to Devexpress

HyperLinkProperties.TextField Property

aspnet-devexpress-dot-web-dot-hyperlinkproperties-10630ecd.md

latest3.3 KB
Original Source

HyperLinkProperties.TextField Property

Gets or sets the data source field that provides caption texts for the inplace editor’s hyperlink.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public virtual string TextField { get; set; }
vb
<DefaultValue("")>
Public Overridable Property TextField As String

Property Value

TypeDefaultDescription
StringString.Empty

A string value that specifies the name of the data source field from which an inplace editor obtains its caption texts.

|

Remarks

If an editor is used inplace within the ASPxGridView’s column, the TextField property can be used to specify the name of the data source field that provides the caption text for the editor. If the caption is data bound to a field, the caption text in each row’s hyperlink editor is set to the corresponding value in the specified field.

For a standalone editor, the caption’s text can be specified via the ASPxHyperLink.Text property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TextField property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-web-forms-grid-create-hyperlink-column-at-runtime/CS/Default.aspx.cs#L44

csharp
colItemName.PropertiesHyperLinkEdit.TextFormatString = "Get details about device {0}";
colItemName.PropertiesHyperLinkEdit.TextField = "ItemName";
ASPxGridView1.Columns.Add(colItemName);

asp-net-web-forms-grid-create-hyperlink-column-at-runtime/VB/Default.aspx.vb#L40

vb
colItemName.PropertiesHyperLinkEdit.TextFormatString = "Get details about device {0}"
colItemName.PropertiesHyperLinkEdit.TextField = "ItemName"
ASPxGridView1.Columns.Add(colItemName)

See Also

Text

TextFormatString

Hyperlink

HyperLinkProperties Class

HyperLinkProperties Members

DevExpress.Web Namespace