# LinkColumn

The **DataGridViewLinkColumn** class is a specialized type of the **DataGridViewColumn** class used to logically host cells that respond to user clicks. The **DataGridViewLinkColumn** class is similar to the **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 **UseColumnTextForLinkValue** property to `true` and set the **Text** property to the desired link text.

A **DataGridViewLinkColumn** has an associated **DataGridViewLinkCell** in every **DataGridViewRow** that intersects it.

The default sort mode for this column type is `NotSortable`.

To respond to user link clicks, handle the **DataGridView\.CellMouseClick** event. You can also use the **DataGridView\.CellClick** event to respond to clicks anywhere in the cell.

{% hint style="info" %}
For a full list of properties, methods and events see the [API documentation](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewlinkcolumn).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/docs/controls/lists/datagridview/linkcolumn.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
