# GridViewColumn

Columns are represented by **GridViewColumn** objects. **GridViewColumn** is the base class for all types of RadGridView columns, including [GridViewDataColumn](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/columns/gridviewdatacolumn) (the base class for all data bound columns). **GridViewColumn** has properties that tailor appearance and behavior for the entire column including:

* **HeaderText, HeaderTextAlignment**: The text string for column heading and the alignment for the heading, respectively. **HeaderTextAlignment** aligns the text to a **ContentAlignment** enumeration member: TopLeft, TopCenter, TopRight, MiddleLeft, MidddleCenter, MiddleRight, BottomLeft, BottomCenter, BottomRight.

* **Name** is the unique name of the column that is used to identify the column in all grid operations;

* **FieldName** property connects the column with the underlying data source in case of a bound column;

* **IsPinned**: [Pins the column](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/columns/pinning-and-unpinning-columns) to the left side of the grid.

* **IsCurrent**: This property sets a certain column to be current

* **IsVisible**: Hide a column by setting **IsVisible** to **False**.

* **MinWidth, MaxWidth, Width**: Minimum, maximum and the current width of the column.

* **AllowResize**: If **True**, the width of the column can be resized. If **False** the splitter mouse cursor does not display and the column is prevented from being resized.

* **TextAlignment**: Aligns the text to a **ContentAlignment** enumeration member: TopLeft, TopCenter, TopRight, MiddleLeft, MidddleCenter, MiddleRight, BottomLeft, BottomCenter, BottomRight.

## See Also

* [Accessing and Iterating through Columns](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/columns/accessing-and-iterating-through-columns)

* [Calculated Columns (Column Expressions)](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/columns/calculated-column-expressions)

* [Converting Data Types](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/columns/converting-data-types)

* [Data Formatting](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/columns/data-formatting)

* [Generating Columns](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/columns/generating-columns)

* [GridViewDataColumn](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/columns/gridviewdatacolumn)

* [Pinning and Unpinning Columns](https://www.telerik.com/products/winforms/documentation/controls/gridview/visual-elements/columns/pinning-and-unpinning-columns)
