aspnet-devexpress-dot-web-dot-hyperlinkproperties-af9e8a6d.md
Gets or sets the pattern used to format the navigation location for the inplace editor’s hyperlink.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("{0}")]
public string NavigateUrlFormatString { get; set; }
<DefaultValue("{0}")>
Public Property NavigateUrlFormatString As String
| Type | Default | Description |
|---|---|---|
| String | "{0}" |
A string value that represents the format pattern.
|
If a hyperlink editor is used inplace within the ASPxGridView’s column the hyperlink’s URL in the editor is set to the corresponding value from the column’s bound data field. Use the NavigateUrlFormatString property to provide a custom format for the editor’s URL.
Note
Display values can be formatted using the standard formatting mechanism. It allows you to format values using standard format patterns. Format specifiers for composing the format pattern are described in the Numeric Format Strings and Date and Time Format Strings topics.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the NavigateUrlFormatString 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#L42
colItemName.FieldName = "ItemName";
colItemName.PropertiesHyperLinkEdit.NavigateUrlFormatString = "~/details.aspx?Device={0}";
colItemName.PropertiesHyperLinkEdit.TextFormatString = "Get details about device {0}";
asp-net-web-forms-grid-create-hyperlink-column-at-runtime/VB/Default.aspx.vb#L38
colItemName.FieldName = "ItemName"
colItemName.PropertiesHyperLinkEdit.NavigateUrlFormatString = "~/details.aspx?Device={0}"
colItemName.PropertiesHyperLinkEdit.TextFormatString = "Get details about device {0}"
See Also