# GridItem class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public class GridItem : IColumnItem
```

Helper for an item in a [GridView](https://eto.picoe.ca/api/type/eto.forms.gridview.md) to store values in an array.

**Remarks:** This should only be used when you don't have your own class to represent each row. You can use the [ColumnBinding<T>](https://eto.picoe.ca/api/type/eto.forms.columnbinding-1.md) to bind to an indexed value in this item.

**Derived types:** [TreeGridItem](https://eto.picoe.ca/api/type/eto.forms.treegriditem.md)

## Constructors

- [GridItem](https://eto.picoe.ca/api/type/eto.forms.griditem/ctor.md): (2 overloads) Initializes a new instance of the [GridItem](https://eto.picoe.ca/api/type/eto.forms.griditem.md) class.

## Properties

- [Tag](https://eto.picoe.ca/api/type/eto.forms.griditem/tag.md): Gets or sets a custom value to associate with this item.
- [Values](https://eto.picoe.ca/api/type/eto.forms.griditem/values.md): Gets or sets the values of the row.

## Methods

- [GetValue](https://eto.picoe.ca/api/type/eto.forms.griditem/getvalue.md): Gets the value from this item for the specified column/index
- [SetValue](https://eto.picoe.ca/api/type/eto.forms.griditem/setvalue.md): Sets the value of this object for the specified column/index
