Represents a column of cells that contain links in a System.Windows.Forms.DataGridView control.
See Also: DataGridViewLinkColumn Members
The System.Windows.Forms.DataGridViewLinkColumn class is a specialized type of the System.Windows.Forms.DataGridViewColumn class used to logically host cells that respond to user clicks. The System.Windows.Forms.DataGridViewLinkColumn class is similar to the System.Windows.Forms.DataGridViewButtonColumn class but provides a different user experience that may be more appropriate in certain situations, such as displaying a URL stored in a database table.
To display the same link text for every cell, set the DataGridViewLinkColumn.UseColumnTextForLinkValue property to true and set the DataGridViewLinkColumn.Text property to the desired link text.
A System.Windows.Forms.DataGridViewLinkColumn has an associated System.Windows.Forms.DataGridViewLinkCell in every System.Windows.Forms.DataGridViewRow that intersects it.
The default sort mode for this column type is DataGridViewColumnSortMode.NotSortable.
To respond to user link clicks, handle the DataGridView.CellContentClick event. You can also use the DataGridView.CellClick event to respond to clicks anywhere in the cell.