DataGridViewLinkColumn.Text Property


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

 property System::String ^ Text { System::String ^ get(); void set(System::String ^ value); };
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.


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


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