# Column

The **DataGridViewColumn** class represents a logical column in a **DataGridView** control. You can retrieve columns through the **Columns** collection of the control.

Unlike a **DataGridViewRow**, which contains the actual collection of cells in a **DataGridView**, **DataGridViewColumn** is used mainly to adjust the appearance and behavior of the column user interface (UI), such as column width and cell style.

Types that derive from **DataGridViewColumn** typically initialize the **CellTemplate** property to a new instance of a related type derived from the **DataGridViewCell** class. Any column properties that relate to the appearance or behavior of individual cells are wrappers for the corresponding properties of the template cell. Changing one of these properties on the column automatically changes the value on the cell template and on all cells in the column. To override the specified value for individual cells, set the cell values after you set the column value.

{% 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.datagridviewcolumn).
{% 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/column.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.
