DataGridViewLinkColumn.Text Property

Definition

Gets or sets the link text displayed in a column's cells if UseColumnTextForLinkValue is true.

public:
 property System::String ^ Text { System::String ^ get(); void set(System::String ^ value); };
public string Text { get; set; }
public string? Text { get; set; }
member this.Text : string with get, set
Public Property Text As String

Property Value

A String containing the link text.

Exceptions

When setting this property, the value of the CellTemplate property is null.

Remarks

The text is visible if the UseColumnTextForLinkValue property is set to true. Otherwise, each cell's link text is populated with the FormattedValue property of each cell.

You can override the Text property value for individual cells by setting the cell UseColumnTextForLinkValue property to false after setting the column UseColumnTextForLinkValue property to true.

Applies to

See also