# WinForms GridView Structure Overview

## Row

Each row in **RadGridView** is represented by **GridRowElement** class.

![WinForms RadGridView Row](https://www.telerik.com/products/winforms/documentation/assets/5c1de23c443c64b2cfc40b99fe29b31d/gridview-fundamentals-overview-of-radgridview-structure001.png)

## HeaderRow

The header element is represented by **GridHeaderRowElement** class.

![WinForms RadGridView HeaderRow](https://www.telerik.com/products/winforms/documentation/assets/dea42088b107fbe388b3bd39ecb6a758/gridview-fundamentals-overview-of-radgridview-structure002.png)

## NewRow

Depending on the value of **GridViewTemplate.AddNewRowPosition** property, the new row element appears below the header row or after the data rows.

![WinForms RadGridView NewRow](https://www.telerik.com/products/winforms/documentation/assets/220c704cf60d9cb3c9425deed56703c0/gridview-fundamentals-overview-of-radgridview-structure003.png)

## FilteringRow

*FilteringRow* appears automatically when you have [Filtering](https://www.telerik.com/products/winforms/documentation/controls/gridview/features/filtering/basic-filtering) enabled by **EnableFiltering** or **GridViewTemplate.EnableFiltering** properties.

![WinForms RadGridView gridview-fundamentals-overview-of-radgridview-structure 004](https://www.telerik.com/products/winforms/documentation/assets/24b940710f7447b0ca8347ee2904014a/gridview-fundamentals-overview-of-radgridview-structure004.png)

## GridViewIndentColumn

This column appears when the grid data is grouped or there is a hierarchical structure to facilitate the expand/collapse functionality. The expand column is always placed in front of all other grid content columns and cannot be moved.

![WinForms RadGridView GridViewIndentColumn](https://www.telerik.com/products/winforms/documentation/assets/8498fe7d703264ace1157cdcf6cdcedf/gridview-fundamentals-overview-of-radgridview-structure005.png)

## GridViewDataColumn

Displays a column bound to a field in a data source.

![WinForms RadGridView GridViewDataColumn](https://www.telerik.com/products/winforms/documentation/assets/9b427c01215a85646acbf1c2c69ba3b7/gridview-fundamentals-overview-of-radgridview-structure006.png)

## MasterTemplate

**MasterTemplate** is the top most **GridViewTemplate** in the hierarchical structure which stores the columns and rows at the root grid level. It contains all inner **GridViewTemplates**(**GridViewTemplate.Templates** collection). When there is no hierarchical structure, only the **MasterTemplate** is displayed.

![WinForms RadGridView MasterTemplate](https://www.telerik.com/products/winforms/documentation/assets/4c1dffb5b59ceddf8137b248c309dcdd/gridview-fundamentals-overview-of-radgridview-structure007.png)

## GridViewTemplate

**GridViewTemplate** is a basic class containing settings for a single level of the hierarchical structure.

![WinForms RadGridView GridViewTemplate](https://www.telerik.com/products/winforms/documentation/assets/697c0a17703950bb27343750dd132266/gridview-fundamentals-overview-of-radgridview-structure008.png)

## GroupPanel

When you want to enable the group-by functionality for the end-user, you need to set **RadGridView\.GroupingEnabled** to *true* and **GridViewTemplate.EnableGrouping**.  If you want to prevent the end-user to drag column header into the **GroupPanel,**  set **GridViewTemplate.AllowDragToGroup** to *false*. **RadGridView\.ShowGroupPanel** shows/hides the group panel. You can access the group panel using **RadGridView\.GridElement.HeaderElement.GroupPanel** property. 

![WinForms RadGridView GroupPanel](https://www.telerik.com/products/winforms/documentation/assets/5e077918b82683fe4f854483be684670/gridview-fundamentals-overview-of-radgridview-structure010.png)

## See Also

* [Binding the Grid](https://www.telerik.com/products/winforms/documentation/controls/gridview/fundamentals/binding-the-grid)

* [Columns](https://www.telerik.com/products/winforms/documentation/controls/gridview/fundamentals/columns)

* [Creating Hierarchical Grids](https://www.telerik.com/products/winforms/documentation/controls/gridview/fundamentals/creating-hierarchical-grids)

* [Editing](https://www.telerik.com/products/winforms/documentation/controls/gridview/fundamentals/editing)

* [Element Hierarchy](https://www.telerik.com/products/winforms/documentation/controls/gridview/fundamentals/element-hierarchy)

* [Key Features](https://www.telerik.com/products/winforms/documentation/controls/gridview/fundamentals/key-features)

* [Keyboard Support](https://www.telerik.com/products/winforms/documentation/controls/gridview/fundamentals/keyboard-support)

* [Logical vs. Visual Grid Structure](https://www.telerik.com/products/winforms/documentation/controls/gridview/fundamentals/logical-vs.-visual-grid-structure)
