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


## GridView

GridView class, a child class of [GridBase](/refs/Class/GridBase).

**Signature:**

```typescript
export declare class GridView extends GridBase
```

**Extends:** [GridBase](/refs/Class/GridBase)

## Remarks

\[Superclass\]

[GridBase](/refs/Class/GridBase)

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `GridView` class.

## Events

| Property | Type | Description |
| --- | --- | --- |
| [onCollapsed](/refs/Class/GridView#oncollapsed) |(grid: [GridView](/refs/Class/GridView){/* */}, itemIndex: number) =&gt; void | Callback notifying that grouped rows are collapsed |
| [onCollapsing](/refs/Class/GridView#oncollapsing) | (grid: [GridView](/refs/Class/GridView){/* */}, itemIndex: number) =&gt; boolean | A callback that determines grouped row folding |
| [onExpanded](/refs/Class/GridView#onexpanded) | (grid: [GridView](/refs/Class/GridView){/* */}, itemIndex: number) =&gt; void | Callback notifying that grouped rows have been expanded |
| [onExpanding](/refs/Class/GridView#onexpanding) | (grid: [GridView](/refs/Class/GridView){/* */}, itemIndex: number) =&gt; boolean | A callback that determines grouped row expansion |
| [onGrouped](/refs/Class/GridView#ongrouped) | (grid: [GridView](/refs/Class/GridView){/* */}) =&gt; void | Callback indicating grouping |
| [onGrouping](/refs/Class/GridView#ongrouping) | (grid: [GridView](/refs/Class/GridView){/* */}, fields: number\[\]) =&gt; boolean | Callback to determine grouping |
| [onPageChanged](/refs/Class/GridView#onpagechanged) | (grid: [GridView](/refs/Class/GridView){/* */}, page: number) =&gt; void | When the grid is in Paging state, a callback notifying that you have moved to another page |
| [onPageChanging](/refs/Class/GridView#onpagechanging) | (grid: [GridView](/refs/Class/GridView){/* */}, page: number) =&gt; boolean | When the grid is in the paging state, a callback that determines page movement |
| [onPageCountChanged](/refs/Class/GridView#onpagecountchanged) | (grid: [GridView](/refs/Class/GridView){/* */}, pageCount: number) =&gt; void | When the grid is in the Paging state, a callback notifying that you have moved to another page along with the number of changed pages |

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [filterMode](/refs/Class/GridView#filtermode) | [FilterMode](/refs/realgrid#filtermode) | Filter operation mode after data modification |
| [filterOr](/refs/Class/GridView#filteror) | boolean | Whether to use or as the filter condition between columns |
| [groupingOptions](/refs/Class/GridView#groupingoptions) | [GroupingOptions](/refs/Interface/GroupingOptions) | Setting information regarding row grouping set in the grid |
| [groupPanel](/refs/Class/GridView#grouppanel) | [GroupPanel](/refs/Interface/GroupPanel) | Group Panel model set in grid |
| [groupSummaryMode](/refs/Class/GridView#groupsummarymode) | [SummaryMode](/refs/realgrid#summarymode) | How to calculate the sum of row grouped columns |
| [rowGroup](/refs/Class/GridView#rowgroup) | [RowGroup](/refs/Interface/RowGroup) | Rowgroup model set up in grid |

## Methods

| Method | Type | Description |
| --- | --- | --- |
| [beginAppendRow(data)](/refs/Class/GridView#beginappendrow) | beginAppendRow(data?: [DataValues](/refs/realgrid#datavalues){/* */}): number; | Adds a new data row after the last data row in the grid. |
| [beginInsertRow(itemIndex, shift, data)](/refs/Class/GridView#begininsertrow) | beginInsertRow(itemIndex?: number, shift?: boolean, data?: [DataValues](/refs/realgrid#datavalues){/* */}): number; | Creates a new data row before or after the data row entered as an index in the grid. |
| [beginUpdateRow(itemIndex)](/refs/Class/GridView#beginupdaterow) | beginUpdateRow(itemIndex?: number): void; | Changes the data row corresponding to the entered index to edit status. |
| [collapse(itemIndex, level)](/refs/Class/GridView#collapse) | collapse(itemIndex: number, level?: number): void; | Collapses the group of the specified itemIndex. |
| [collapseAll(recursive)](/refs/Class/GridView#collapseall) | collapseAll(recursive?: boolean): void; | Collapse the root group. |
| [collapseGroup(itemIndex, recursive, force)](/refs/Class/GridView#collapsegroup) | collapseGroup(itemIndex: number, recursive: boolean, force?: boolean): void; | Collapses the specified group. |
| [collapseParent(itemIndex, recursive, force)](/refs/Class/GridView#collapseparent) | collapseParent(itemIndex: number, recursive: boolean, force?: boolean): void; | Collapses the parent of the specified group. |
| [expand(itemIndex, level)](/refs/Class/GridView#expand) | expand(itemIndex: number, level?: number): void; | 지정한 행의 그룹을 펼친다. |
| [expandAll(recursive, level)](/refs/Class/GridView#expandall) | expandAll(recursive?: boolean, level?: number): void; | Expand the root group. |
| [expandGroup(itemIndex, recursive, force, level)](/refs/Class/GridView#expandgroup) | expandGroup(itemIndex: number, recursive?: boolean, force?: boolean, level?: number): void; | Expands the specified group. |
| [expandParent(itemIndex, recursive, force, level)](/refs/Class/GridView#expandparent) | expandParent(itemIndex: number, recursive: boolean, force?: boolean, level?: number): void; | Expands the parents of the specified group. |
| [getCheckedItems(rowOnly)](/refs/Class/GridView#getcheckeditems) | getCheckedItems(rowOnly?: boolean): number\[\]; | Returns a list of checked items as an array. |
| [getCheckedRows(sort, visibleOnly, allRows)](/refs/Class/GridView#getcheckedrows) | getCheckedRows(sort?: boolean, visibleOnly?: boolean, allRows?: boolean): number\[\]; | Returns a list of checked data rows. |
| [getDataSource()](/refs/Class/GridView#getdatasource) | getDataSource(): [LocalDataProvider](/refs/Class/LocalDataProvider){/* */}; | Returns the DataProvider connected to the grid. |
| [getGroupFieldNames(orginal)](/refs/Class/GridView#getgroupfieldnames) | getGroupFieldNames(original?: boolean): string\[\] \| number\[\]; | Returns the names of grouped fields. |
| [getGroupFields()](/refs/Class/GridView#getgroupfields) | getGroupFields(): number\[\]; | Returns the indices of grouped fields. |
| [getGroupIndex(itemIndex)](/refs/Class/GridView#getgroupindex) | getGroupIndex(itemIndex: number): number; | Returns the index of the group to which you belong. |
| [getGroupingOptions()](/refs/Class/GridView#getgroupingoptions) | getGroupingOptions(): [GroupingOptions](/refs/Interface/GroupingOptions){/* */}; | Returns setting information regarding grid row grouping. |
| [getGroupLevel(field)](/refs/Class/GridView#getgrouplevel) | getGroupLevel(field: string \| number): number; | Returns the group level of the specified field. |
| [getGroupLevels()](/refs/Class/GridView#getgrouplevels) | getGroupLevels(): number; | Returns what level it is currently grouped into. |
| [getGroupPanel()](/refs/Class/GridView#getgrouppanel) | getGroupPanel(): [GroupPanel](/refs/Interface/GroupPanel){/* */}; | Returns [GroupPanel](/refs/Interface/GroupPanel) of the grid. |
| [getGroupSummaryValue(model, column, summaryIndex)](/refs/Class/GridView#getgroupsummaryvalue) | getGroupSummaryValue(model: [GridItem](/refs/Interface/GridItem){/* */}, column: string \| [DataColumn](/refs/Interface/DataColumn){/* */}, summaryIndex?: number) : any \| any\[\]; | The result value is retrieved from GroupFooter's [expression](/refs/Interface/ColumnSummary#expression) or [valueCallback](/refs/Interface/ColumnSummary#valuecallback){/* */}. |
| [getMergedItems(itemIndex, column, dataOnly, force)](/refs/Class/GridView#getmergeditems) | getMergedItems(itemIndex: number, column: string, dataOnly?: boolean, force?: boolean): number\[\]; | |
| [getOptions()](/refs/Class/GridView#getoptions) | getOptions(): [ViewOptions](/refs/Interface/ViewOptions){/* */}; | Returns grid option information. |
| [getPage()](/refs/Class/GridView#getpage) | getPage(): number; | Returns the current page number in paging mode. |
| [getPageCount()](/refs/Class/GridView#getpagecount) | getPageCount(): number; | Returns the total number of pages when in paging mode. |
| [getPageOfDataRow(dataRow)](/refs/Class/GridView#getpageofdatarow) | getPageOfDataRow(dataRow: number): number; | Find the page where the row is located. |
| [getRowGroup()](/refs/Class/GridView#getrowgroup) | getRowGroup(): [RowGroup](/refs/Interface/RowGroup){/* */}; | Returns [RowGroup](/refs/Interface/RowGroup) of the grid. |
| [groupBy(fieldNames, sorting, sortDir)](/refs/Class/GridView#groupby) | groupBy(fieldNames: string\[\], sorting?: boolean, sortDir?: [SortDirection](/refs/realgrid#sortdirection){/* */}): void; | Row grouping is performed in the order included in the specified field list or in the order after sorting the data. |
| [isGrouped()](/refs/Class/GridView#isgrouped) | isGrouped(): boolean; | Returns whether the grid is grouped. |
| [isGroupItem(itemIndex)](/refs/Class/GridView#isgroupitem) | isGroupItem(itemIndex: number): boolean; | Returns whether the specified index is a group item. |
| [isMergedGrouped()](/refs/Class/GridView#ismergedgrouped) | isMergedGrouped(): boolean;| Returns whether the grid is in mergeMode. |
| [isParentVisible(itemIndex)](/refs/Class/GridView#isparentvisible) | isParentVisible(itemIndex: number): boolean; | Returns whether the parent of the specified index is displayed. |
| [layoutCollapseAll(recursive)](/refs/Class/GridView#layoutcollapseall) | layoutCollapseAll(recursive: boolean): void; | If expandable of the group layout is set, the group layout is collapsed. |
| [layoutExpandAll(recursive)](/refs/Class/GridView#layoutexpandall) | layoutExpandAll(recursive: boolean): void; | If expandable is set for the group layout, the group layout is expanded. |
| [populateMerges(refresh)](/refs/Class/GridView#populatemerges) | populateMerges(refresh?: boolean): void; | When the value returned by [DataColumn.mergeCallback](/refs/Interface/DataColumn#mergecallback){/* */} changes, update the internal merge information. |
| [setGroupingOptions(value)](/refs/Class/GridView#setgroupingoptions) | setGroupingOptions(value: [GroupingOptions](/refs/Interface/GroupingOptions){/* */}): void; | Configure grid row grouping. |
| [setGroupPanel(value)](/refs/Class/GridView#setgrouppanel) | setGroupPanel(value: [GroupPanel](/refs/Interface/GroupPanel){/* */}): void; | Set the grid [GroupPanel](/refs/Interface/GroupPanel). |
| [setOptions(options)](/refs/Class/GridView#setoptions) | setOptions(options: [ViewOptions](/refs/Interface/ViewOptions){/* */}): void; | Reset grid option information. |
| [setPage(page, startItem)](/refs/Class/GridView#setpage) | setPage(page: number, startItem?: number): void; | Specifies the page to display when in paging mode. |
| [setPageCount(count)](/refs/Class/GridView#setpagecount) | setPageCount(count: number): void; | Change the number of paging. |
| [setPaging(paging, size, maxCount)](/refs/Class/GridView#setpaging) | setPaging(paging: boolean, size?: number, maxCount?: number): void; | The grid runs in Paging mode. |
| [setRowGroup(value)](/refs/Class/GridView#setrowgroup) | setRowGroup(value: [RowGroup](/refs/Interface/RowGroup) \| [ConfigObject](/refs/realgrid#configobject){/* */}): void; | Set [RowGroup](/refs/Interface/RowGroup) of the grid. |

## Events Desc

### onCollapsed

Callback notifying that grouped rows are collapsed

`Type` - (grid: [GridView](/refs/Class/GridView){/* */}, itemIndex: number) =&gt; void

**Remarks:**

\[Parameter list\]

`grid` - GridView control

`itemIndex` - itemIndex of the collapsed group item

**Example:**


```js
gridView.onCollapsed = function(grid, itemIndex) {
 console.log('Collapsed at: ' + itemIndex)
};
```

<hr/>

### onCollapse

Callback to determine grouped row folding

`Type` - (grid: [GridView](/refs/Class/GridView){/* */}, itemIndex: number) =&gt; boolean

**Remarks:**

\[Parameter list\]

`grid` - GridView control

`itemIndex` - itemIndex of the group item to collapse

**Example:**


```js
gridView.onCollapsing = function(grid, itemIndex) {
 if (itemIndex % 2 === 0) {
 return false;
 }
};
```

<hr/>

### onExpanded

Callback notifying that grouped rows have been expanded

`Type` - (grid: [GridView](/refs/Class/GridView){/* */}, itemIndex: number) =&gt; void

**Remarks:**

\[Parameter list\]

`grid` - GridView control

`itemIndex` - id of the expanded group item

**Example:**


```js
gridView.onExpanded = function(grid, itemIndex) {
 console.log('Expanded at: ' + itemIndex)
};
```

<hr/>

### onExpanding

Callback to determine grouped row expansion

`Type` - (grid: [GridView](/refs/Class/GridView){/* */}, itemIndex: number) =&gt; boolean

**Remarks:**

\[Parameter list\]

`grid` - GridView control

`itemIndex` - itemIndex of the group item to expand

**Example:**


```js
gridView.onExpanding = function(grid, itemIndex) {
 if (itemIndex % 2 === 0) {
 return false;
 }
};
```

<hr/>

### onGrouped

Callback notifying that grouping has occurred

`Type` - (grid: [GridView](/refs/Class/GridView){/* */}) =&gt; void

**Remarks:**

\[Parameter list\]

`grid` - GridView control

**Example:**


```js
gridView.onGrouped = function(grid) {
 console.log("I am Grouped!");
};
```

<hr/>

### onGrouping

Callback to determine grouping

`Type` - (grid: [GridView](/refs/Class/GridView){/* */}, fields: number\[\]) =&gt; boolean

**Remarks:**

\[Parameter list\]

`grid` - GridView control

`fields` - indices of the fields being grouped

\[Return value\] - Whether to execute grouping. If false is returned, grouping is canceled.

**Example:**


```js
gridView.onGrouping = function(grid, fields) {
 alert("onGrouping event occurred. Returns false.");
 return false;
};
```

<hr/>

### onPageChanged

When the grid is in Paging state, a callback notifies that you have moved to another page.

`Type` - (grid: [GridView](/refs/Class/GridView){/* */}, page: number) =&gt; void

**Remarks:**

\[Parameter list\]

`grid` - GridView control

`page` - index of the newly moved page

**Example:**


```js
gridView.onPageChanged = function(grid, page) {
 if(page % 2 === 0) {
 console.log('even number changed!')
 }
};
```

<hr/>

### onPageChanging

When the grid is in paging state, a callback that determines page movement.

`Type` - (grid: [GridView](/refs/Class/GridView){/* */}, page: number) =&gt; boolean

**Remarks:**

\[Parameter list\]

`grid` - GridView control

`page` - index of the new page to be moved to

\[Return value\] - If false is returned, the page movement is canceled.

**Example:**


```js
gridView.onPageChanging = function(grid, page) {
 if(page % 2 === 0) {
 return true;
 }
 return false;
};
```

<hr/>

### onPageCountChanged

When the grid is in the Paging state, a callback notifies that you have moved to another page along with the number of pages that have changed.

`Type` - (grid: [GridView](/refs/Class/GridView){/* */}, pageCount: number) =&gt; void

**Remarks:**

\[Parameter list\]

`grid` - GridView control

`pageCount` - Number of changed pages

**Example:**


```js
gridView.onPageCountChanged = function(grid, pageCount) {
 console.log('pageCount: ' + pageCount);
};
```

<hr/>

## Properties Desc

### filterMode

Operation mode of filter after data modification

`Type` - [FilterMode](/refs/realgrid#filtermode)

**Remarks:**

If `'explicit'` is used, filtering will only be performed if filtered data is modified explicitly.

**Example:**


```js
gridView.filterMode = 'explicit';
```

<hr/>

### filterOr

Whether to set the filter condition between columns to or.

`Type` - boolean

**Remarks:**

If set to `true`, filtering between filters for each column is reflected and displayed as an or condition.

**Example:**


```js
gridView.filterOr = true;
```

<hr/>

### groupingOptions

Setting information regarding row grouping set in the grid

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

**Remarks:**

[GroupingOptions](/refs/Interface/GroupingOptions) Returns an object. You can get or set the properties of GroupingOptions.

**Example:**


```js
gridView.groupingOptions.linear = true;
```

<hr/>

### groupPanel

Group Panel model set in grid

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

**Remarks:**

Returns a [GroupPanel](/refs/Interface/GroupPanel) object. You can get or set the properties of GroupPanel.

**Example:**


```js
gridView.groupPanel.visible = true;
```

<hr/>

### groupSummaryMode

How to calculate the sum of row grouped columns

`Type` - [SummaryMode](/refs/realgrid#summarymode)

**Remarks:**

It can be changed by assigning a value. Set to the value of [SummaryMode](/refs/realgrid#summarymode).

**Example:**


```js
gridView.groupSummaryMode = 'aggregate';
```

<hr/>

### rowGroup

Rowgroup model set up in grid

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

**Remarks:**

[RowGroup](/refs/Interface/RowGroup) Returns an object. You can get or set RowGroup properties.

**Example:**


```js
gridView.rowGroup.mergeMode = true;
```

<hr/>

## Method Desc

### beginAppendRow

Add a new data row after the last data row in the grid.

**\[Parameter list\]**

`data` - [DataValues](/refs/realgrid#datavalues)

Default: null, data to be added to new row

**\[Return value\] -** number

**Example:**


```js
gridView.beginAppendRow();
```

<hr/>

### beginInsertRow

Creates a new data row before or after the data row entered as an index in the grid.

**\[Parameter List\]**

`itemIndex` - number

Default: `-1`{/* */}, base data row. Creates a new data row before this row.

`shift` - boolean

Default: `false`{/* */}, `true`{/* */}: Create after data row.

`data` - [DataValues](/refs/realgrid#datavalues)

Default: null, data to be added to new row

**\[return value\] -** number

**Remarks:**

If the grid is in edit mode or there is no data, it will not be added. If itemIndex is not entered or -1 is entered, it will be created in the currently selected row.

**Example:**


```js
gridView.beginInsertRow();
```

<hr/>

### beginUpdateRow

Changes the data row corresponding to the entered index to edit status.

**\[Parameter List\]**

`itemIndex` - number

The index of the row. If not specified, focus row.

**\[Return Value\] -** void

**Example:**


```js
gridView.beginUpdateRow();
```

<hr/>

### collapse

지정한 itemIndex의 그룹을 접는다.

**\[매개변수 목록\]**

`itemIndex` - number

행의 인덱스

`level` - number

`-1`{/* */}이면 선택된 행을 포함하는 그룹중 접혀있지 않은 그룹을 접는다. `1`{/* */}이상의 값이 입력되면 입력된 level에 해당하는 그룹을 접는다.

**\[반환값\] -** void

**Remarks:**

지정한 행이 row이거나 footer이면 행의 그룹을 접는다. 그룹이 접혀있는 경우 상위 그룹을 접는다.

<hr/>

### collapseAll

Collapse the root group.

**\[Parameter List\]**

`recursive` - boolean

Default: `false`{/* */}, Whether descendant groups included in the group are collapsed. When `true`{/* */}, descendant groups included in the group are also in a collapsed state.

**\[Return Value\] -** void

**Example:**


```js
gridView.collapseAll();
```

<hr/>

### collapseGroup

Collapses the specified group.

**\[Parameter List\]**

`itemIndex` - number

Index on the grid for that group

`recursive` - boolean

Whether or not descendant groups included in the group are collapsed. When true, if the state is already collapsed, nothing is done.

`force` - boolean

Default value: `false`{/* */}, whether descendants are collapsed when recursive is true even if they are already collapsed.

**\[Return Value\] -** void

**Remarks:**

If the specified item does not exist or is not a group, nothing happens.

**Example:**


```js
gridView.collapseGroup(2, true);
```

<hr/>

### collapseParent

Collapses the parent of the specified group.

**\[Parameter List\]**

`itemIndex` - number

Index on the grid for that group

`recursive` - boolean

Whether or not the descendant group included in the parent group is collapsed. When true, if the state is already collapsed, nothing is done.

`force` - boolean

Default value: `false`{/* */}, whether the descendants of the parent group are collapsed when recursive is true even if they are already collapsed.

**\[Return Value\] -** void

**Remarks:**

If the specified item or its parent does not exist or is not a group, nothing happens.

**Example:**


```js
gridView.collapseParent(2, true);
```

<hr/>

### expand

지정한 행의 그룹을 펼친다.

**\[매개변수 목록\]**

`itemIndex` - number

행의 인덱스

`level` - number

level을 지정하면 해당 level까지 펼친다.

**\[반환값\] -** void

**Remarks:**

지정한 행이 그룹아이템이 아니면 상위 그룹을 펼친다.

<hr/>

### expandAll

Expand the root group.

**\[Parameter List\]**

`recursive` - boolean

Default: `false`{/* */}, Whether to expand descendant groups included in the group.

`level` - number

Default: `undefined`{/* */}, `undefined`{/* */}: If recursive is true, expand all descendants.

**\[Return Value\] -** void

**Remarks:**

When recursive is true, if you specify a level, it expands to that level.

**Example:**


```js
gridView.expandAll();
```

<hr/>

### expandGroup

Expands the specified group.

**\[Parameter List\]**

`itemIndex` - number

Index on the grid for that group

`recursive` - boolean

Whether to expand descendant groups included in the group

`force` - boolean

Default: `false`{/* */}, whether to expand descendants when recursive is true even if they are already expanded

`level` - number

Default: `0`{/* */}, when 0, if recursive is true, all descendants are expanded.

**\[Return Value\] -** void

**Remarks:**

If the specified item does not exist or is not a group, nothing happens. When recursive is true, if you specify a level, it expands to that level.

**Example:**


```js
gridView.expandGroup(2, true);
```

<hr/>

### expandParent

Expands the parents of the specified group.

**\[Parameter List\]**

`itemIndex` - number

Index on the grid for that group

`recursive` - boolean

Whether to expand the descendant group included in the parent group

`force` - boolean

Default value: `false`{/* */}, whether to expand the descendants of the parent group when recursive is true even if they are already expanded.

`level` - number

Default: `0`{/* */}, when 0, if recursive is true, expand all descendants.

**\[Return Value\] -** void

**Remarks:**

If the specified item or its parent does not exist or is not a group, nothing happens. When recursive is true, if you specify a level, it expands to that level.

**Example:**


```js
gridView.expandParent(2, true);
```

<hr/>

### getCheckedItems

Returns a list of checked items as an array.

**\[Parameter List\]**

`rowOnly` - boolean

Default: `true`{/* */}, `true`{/* */}: returns only rows, `false`{/* */}: also returns non-data areas such as group footer

**\[return value\] -** number\[\]

**Example:**


```js
let checkedItems = gridView.getCheckedItems();
```

<hr/>

### getCheckedRows

Returns a list of checked data rows.

**\[Parameter List\]**

`sort` - boolean

Default: `true`{/* */}, `true`{/* */}: Returns in ascending order, `false`{/* */}: Returns in the order they appear on the screen.

`visibleOnly` - boolean

Default value: `false`{/* */}, If you enter `true`{/* */}, rows that collapse or are not visible during paging are excluded.

`allRows` - boolean

Default value: `false`{/* */}, If you enter `true`{/* */}, checked rows of pages that are not visible during paging are also returned.

**\[return value\] -** number\[\]

**Example:**


```js
let checkedRows = gridView.getCheckedRows();
```

<hr/>

### getDataSource

Returns the DataProvider connected to the grid.

**Example:**


```js
let ds = gridView.getDataSource();
```

<hr/>

### getGroupFieldNames

Returns the names of grouped fields.

**\[Parameter List\]**

`original` - boolean

Default value: true, true: returns with the specified name, false: returns with uppercase letters.

**\[Return value\] -** string\[\] \| number\[\]

**Example:**


```js
let GFieldNames = gridView.getGroupFieldNames();
```

<hr/>

### getGroupFields

Returns the indices of grouped fields.

**Example:**


```js
let GFields = gridView.getGroupFields();
```

<hr/>

### getGroupIndex

Returns the index of the group to which you belong.

**\[Parameter List\]**

`itemIndex` - number

index on grid

**\[return value\] -** number

**Example:**


```js
let GIndex = gridView.getGroupIndex(2);
```

<hr/>

### getGroupingOptions

Returns setting information regarding grid row grouping.

**Example:**


```js
let groupingOpts = gridView.getGroupingOptions();
groupingOpts.prompt = "I am Group";
gridView.setGroupingOptions(groupingOpts);
```

<hr/>

### getGroupLevel

Returns the group level of the specified field.

**\[Parameter List\]**

`field` - string \| number

Field name or index

**\[return value\] -** number

**Remarks:**

The first group level is 1.

**Example:**


```js
let Glevel = gridView.getGroupLevel('field1');
```

<hr/>

### getGroupLevels

Returns what level it is currently grouped into.

**Example:**


```js
let Glevels = gridView.getGroupLevels();
```

<hr/>

### getGroupPanel

Returns [GroupPanel](/refs/Interface/GroupPanel) of the grid.

**Example:**


```js
let groupPanel = gridView.getGroupPanel();
groupPanel.visible = false;
gridView.setGroupPanel(groupPanel);
```

<hr/>

### getGroupSummaryValue

The result value is retrieved from GroupFooter's [expression](/refs/Interface/ColumnSummary#expression) or [valueCallback](/refs/Interface/ColumnSummary#valuecallback){/* */}.

**\[Parameter List\]**

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

Item model information

`column` - string \| [DataColumn](/refs/Interface/DataColumn)

column

`summaryIndex` - number

index of summary

**\[Return Value\] -** any \| any\[\]

**Remarks:**

This is a value to which numberFormat, prefix, etc. have not been applied. If there are multiple selected footers, they are returned as an array.

<hr/>

### getMergedItems

**\[Parameter List\]**

`itemIndex` - number

itemIndex of grid row

`column` - string

name of column

`dataOnly` - boolean

Whether to retrieve only data rows default `true`

`force` - boolean

`true`{/* */}이면 merge된 셀이 아니어도 입력된 itemIndex를 포함하는 배열로 return한다. default `true`

**\[return value\] -** number\[\]

**Remarks:**

The itemIndex included in the merged cell is imported into an array.

**Example:**


```js
let mergeItems = gridView.getMergedItems(1, "column", true, true);
let mergeDataRows = gridView.getRowsOfItems(mergeItems);
```

<hr/>

### getOptions

Returns grid option information.

**Remarks:**

A grouping property is added to the model returned by [GridBase.getOptions()](/refs/Class/GridBase#getoptions).

**Example:**


```js
let options = gridView.getOptions();
```

<hr/>

### getPage

Returns the current page number in paging mode.

**Example:**


```js
let currPage = gridView.getPaging();
```

<hr/>

### getPageCount

Returns the total number of pages when in paging mode.

**Example:**


```js
let pageCount = gridView.getPageCount();
```

<hr/>

### getPageOfDataRow

Find the page where the row is located.

**\[Parameter List\]**

`dataRow` - number

dataRow of the row you are looking for

**\[return value\] -** number

<hr/>

### getRowGroup

Returns [RowGroup](/refs/Interface/RowGroup) of the grid.

**Example:**


```js
let rowGroup = gridView.getRowGroup();
rowGroup.levelIndent = false;
gridView.setRowGroup(rowGroup);
```

<hr/>

### groupBy

Row grouping is performed in the order included in the specified field list or in the order after sorting the data.

**\[Parameter List\]**

`fieldNames` - string\[\]

List of field names. If you want to ungroup, you must enter an empty array.

`sorting` - boolean

Sort or not

`sortDir` - [SortDirection](/refs/realgrid#sortdirection)

**\[Return Value\] -** void

**Example:**


```js
// group settings
gridView.groupBy(["field1", "field2"]);

// ungroup
gridView.groupBy([]);
```

<hr/>

### isGrouped

Returns whether the grid is grouped.

**Example:**


```js
let isGrouped = gridView.isGrouped();
```

<hr/>

### isGroupItem

Returns whether the specified index is a group item.

**\[Parameter List\]**

`itemIndex` - number

index on grid

**\[return value\] -** boolean

**Example:**


```js
let isGroupItem = gridView.isGroupItem(4);
```

<hr/>

### isMergedGrouped

Returns whether the grid is in mergeMode.

**Example:**


```js
let isMergedGrouped = gridView.isMergedGrouped();
```

<hr/>

### isParentVisible

Returns whether the parent of the specified index is displayed.

**\[Parameter List\]**

`itemIndex` - number

index on grid

**\[return value\] -** boolean

**Example:**


```js
let isParentVis = gridView.isParentVisible(2);
```

<hr/>

### layoutCollapseAll

If expandable of the group layout is set, the group layout is collapsed.

**\[Parameter List\]**

`recursive` - boolean

If there are subgroups, collapse the subgroups as well.

**\[Return Value\] -** void

<hr/>

### layoutExpandAll

If expandable is set for the group layout, the group layout is expanded.

**\[Parameter List\]**

`recursive` - boolean

If there are subgroups, expand the subgroups as well.

**\[Return Value\] -** void

<hr/>

### populateMerges

Updates internal merge information when the value returned by [DataColumn.mergeCallback](/refs/Interface/DataColumn#mergecallback){/* */} changes.

**\[매개변수 목록\]**

`refresh` - boolean

`true`{/* */}이면 내부 merge정보를 갱신후 그리드를 다시 그린다. default `true`

**\[반환값\] -** void

<hr/>

### setGroupingOptions

Configure grid row grouping.

**\[Parameter List\]**

`value` - [GroupingOptions](/refs/Interface/GroupingOptions)

Information you want to set. It is the same model as [GroupingOptions](/refs/Interface/GroupingOptions).

**\[Return Value\] -** void

**Example:**


```js
gridView.setGroupingOptions({prompt: "I am Group"});
```

<hr/>

### setGroupPanel

Set the grid [GroupPanel](/refs/Interface/GroupPanel).

**\[Parameter List\]**

`value` - [GroupPanel](/refs/Interface/GroupPanel)

Information like [GroupPanel](/refs/Interface/GroupPanel). You only need to pass the property you want to change.

**\[Return Value\] -** void

**Example:**


```js
gridView.setGroupPanel({visible: false});
```

<hr/>

### setOptions

Reset grid option information.

**\[Parameter List\]**

`options` - [ViewOptions](/refs/Interface/ViewOptions)

Setting information. The grouping property has been added to the same model as the value of GridBase's [setOptions()](/refs/Class/GridBase#setoptions){/* */}.

**\[Return Value\] -** void

**Remarks:**

Unlike [getOptions](/refs/Class/GridView#getoptions), which returns only grid-level information, this method allows you to reset child components and other execution information at the same time.

**Example:**


```js
let options = {
     summaryMode: 'aggregate',
     displayOptions: {
         columnResizable : false
     },
     grouping: {
         prompt: 'I am Groop'
     }
};
gridView.setOptions(options);
```

<hr/>

### setPage

Specifies the page to display when in paging mode.

**\[Parameter List\]**

`page` - number

page number

`startItem` - number

Default: `-1`{/* */}, index of the first row to display on this page. If it is -1, it is determined according to the page size specified in [setPaging](/refs/Class/GridView#setpaging).

**\[Return Value\] -** void

**Example:**


```js
gridView.setPage(4);
```

<hr/>

### setPageCount

Change the number of paging.

**\[Parameter List\]**

`count` - number

New page count

**\[Return Value\] -** void

**Example:**


```js
gridView.setPageCount(20);
```

<hr/>

### setPaging

The grid runs in Paging mode.

**\[Parameter List\]**

`paging` - boolean

Paging mode when true

`size` - number

Default: `10`{/* */}, number of rows to display per page.

`maxCount` - number

Default: `-1`{/* */}, maximum number of pages

**\[Return Value\] -** void

**Example:**


```js
gridView.setPaging(true);
```

<hr/>

### setRowGroup

Set [RowGroup](/refs/Interface/RowGroup) of the grid.

**\[Parameter List\]**

`value` - [RowGroup](/refs/Interface/RowGroup) \| [ConfigObject](/refs/realgrid#configobject)

[RowGroup](/refs/Interface/RowGroup) Setting information such as model. You only need to pass the property you want to change.

**\[Return Value\] -** void

**Example:**


```js
gridView.setRowGroup({levelIndent: false});
```

<hr/>