{/* Do not edit this file. It is automatically generated by API Documenter. */}


## GridItem

The item's information model

**Signature:**

```typescript
export interface GridItem
```

## Remarks

When returning the model of an item using [GridBase.getModel()](/refs/Class/GridBase#getmodel){/* */}, [GridBase.getModelAs()](/refs/Class/GridBase#getmodelas), etc. It is the format of

When returning the model of an item, the format of the returned model may differ depending on whether the `extended` parameter in the method is `true` or `false`.

## Example


```js
let model = gridView.getModelAs(3, 'row'); // return GridItem model
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [checkable](/refs/Interface/GridItem#checkable) | boolean | Whether selectable |
| [checked](/refs/Interface/GridItem#checked) | boolean | Checked or not |
| [childIndex](/refs/Interface/GridItem#childindex) | number | Your order based on your parents |
| [count](/refs/Interface/GridItem#count) | number | Number of sub-items |
| [dataRow](/refs/Interface/GridItem#datarow) | number | Row unique number |
| [dataRows](/refs/Interface/GridItem#datarows) | number\[\] | Index of child rows in case of group item |
| [expanded](/refs/Interface/GridItem#expanded) | boolean | Expanded or not |
| [firstDataItem](/refs/Interface/GridItem#firstdataitem) | [GridItem](/refs/Interface/GridItem) | If it is a group item, the first data item |
| [firstItem](/refs/Interface/GridItem#firstitem) | [GridItem](/refs/Interface/GridItem) | If it is a group item, the first item |
| [footerId](/refs/Interface/GridItem#footerid) | number | footer id |
| [getData](/refs/Interface/GridItem#getdata) | (field: string \| number) =&gt; any | If the type is "row" or "tree", the value of the entered field is retrieved. |
| [id](/refs/Interface/GridItem#id) | number | item id |
| [indeterminate](/refs/Interface/GridItem#indeterminate) | boolean | Whether indeterminate state |
| [index](/refs/Interface/GridItem#index) | number | Order on the grid |
| [itemIndex](/refs/Interface/GridItem#itemindex) | number | Order on the grid |
| [itemState](/refs/Interface/GridItem#itemstate) | [ItemState](/refs/realgrid#itemstate) | Status value of item |
| [level](/refs/Interface/GridItem#level) | number | level |
| [parentId](/refs/Interface/GridItem#parentid) | number | parent's id |
| [rowState](/refs/Interface/GridItem#rowstate) | [RowState](/refs/realgrid#rowstate) | Status value of row |
| [type](/refs/Interface/GridItem#type) | undefined \| 'row' \| 'group' \| 'tree' \| 'footer' | Type |

## Properties Desc

### checkable

Whether selectable

`Type` - boolean

<hr/>

### checked

Checked or not

`Type` - boolean

<hr/>

### childIndex

Your order based on your parents

`Type` - number

**Remarks:**

`extended` must be `true` to obtain information.

<hr/>

### count

Number of sub-items

`Type` - number

<hr/>

### dataRow

Row unique number

`Type` - number

<hr/>

### dataRows

Index of child rows in case of group item

`Type` - number\[\]

**Remarks:**

`extended` must be `true` to obtain information.

<hr/>

### expanded

Unfolded or not

`Type` - boolean

**Remarks:**

You can obtain the relevant information when it is an item or group item of [TreeView](/refs/Class/TreeView).

<hr/>

### firstDataItem

If it is a group item, the first data item

`Type` - [GridItem](/refs/Interface/GridItem)

**Remarks:**

`extended` must be `true` to obtain information.

<hr/>

### firstItem

If it is a group item, the first item

`Type` - [GridItem](/refs/Interface/GridItem)

**Remarks:**

`extended` must be `true` to obtain information.

<hr/>

### footerId

footer id

`Type` - number

<hr/>

### getData

If the type is "row" or "tree", the value of the entered field is retrieved.

`Type` - (field: string \| number) =&gt; any

<hr/>

### id

item id

`Type` - number

<hr/> 

### indeterminate

Whether indeterminate status 

`Type` - boolean

<hr/>

### index

Order on the grid

`Type` - number

<hr/>

### itemIndex

Order on the grid

`Type` - number

**Remarks:**

Properties reserved for compatibility with RealGridJS

<hr/>

### itemState

Item state value

`Type` - [ItemState](/refs/realgrid#itemstate)

<hr/>

### level

level

`Type` - number

**Remarks:**

A row of [TreeView](/refs/Class/TreeView) is the tree level.

`extended` must be `true` to obtain information.

<hr/>

### parentId

parent's id

`Type` - number

<hr/>

### rowState

Status value of row

`Type` - [RowState](/refs/realgrid#rowstate)

<hr/>

### type

type

`Type` - undefined \| 'row' \| 'group' \| 'tree' \| 'footer'

<hr/>