Gets or sets the format string used to convert data to link target.
The format string used to convert data to Target of the LinkClick event.
The provided string is used as an argument to String.Format function, to convert data provided as a second argument. The data are represented by {0} in the format string.
[Visual Basic]
' LinkCell1 is used to display the text "Help" and when clicked,
' the Target of LinkClick event will be "Help" too
LinkCell1.CellSource.ConstantData = "Help"
LinkCell1.FormatString = "{0}"
LinkCell1.UrlFormatString = "{0}"
' LinkCell2 is used to display the product name and when clicked,
' the Target of LinkClick event will be "OrderForm"
LinkCell2.CellSource.ColumnName = "ProductName"
LinkCell2.FormatString = "{0}"
LinkCell2.UrlFormatString = "OrderForm"
' All links displayed by the LinkCell1 or LinkCell2 will have the same target,
' so they will all get VisitedColor after clicking on any of them.
' LinkCell3 is used to display the text "Buy now!" and when clicked,
' the Target of LinkClick event will be set to product id
LinkCell3.CellSource.ColumnName = "ProductId"
LinkCell3.FormatString = "Buy now!"
LinkCell3.UrlFormatString = "{0}"
' LinkCell4 is used to display the email and when clicked,
' the Target of LinkClick event will contain prefix "mailto://" for use in IE
LinkCell4.CellSource.ColumnName = "Email"
LinkCell4.FormatString = "{0}"
LinkCell4.UrlFormatString = "mailto://{0}"
[C#]
// linkCell1 is used to display the text "Help" and when clicked,
// the Target of LinkClick event will be "Help" too
linkCell1.CellSource.ConstantData = "Help";
linkCell1.FormatString = "{0}";
linkCell1.UrlFormatString = "{0}";
// linkCell2 is used to display the product name and when clicked,
// the Target of LinkClick event will be "OrderForm"
linkCell2.CellSource.ColumnName = "ProductName";
linkCell2.FormatString = "{0}";
linkCell2.UrlFormatString = "OrderForm";
// All links displayed by the LinkCell1 or LinkCell2 will have the same target,
// so they will all get VisitedColor after clicking on any of them.
// linkCell3 is used to display the text "Buy now!" and when clicked,
// the Target of LinkClick event will be set to product id
linkCell3.CellSource.ColumnName = "ProductId";
linkCell3.FormatString = "Buy now!";
linkCell3.UrlFormatString = "{0}";
// linkCell4 is used to display the email and when clicked,
// the Target of LinkClick event will contain prefix "mailto://" for use in IE
linkCell4.CellSource.ColumnName = "Email";
linkCell4.FormatString = "{0}";
linkCell4.UrlFormatString = "mailto://{0}";
LinkCell Class | Resco.Controls.AdvancedTree Namespace | Format