# GridApi

Canonical page: https://www.adaptabletools.com/docs/reference/gridapi

Grid data and selection.

Rows and cell values (raw, display and normalised), loading and editing data,
filtering and sorting, the current selection, and row nodes. Prefer these
methods to calling AG Grid directly when AdapTable wraps the behaviour.

```ts title="TypeScript"
export interface GridApi 
```

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [addAgGridColumnDefinition(columnDefinition)](https://www.adaptabletools.com/docs/reference/gridapi.md#addaggridcolumndefinition) | `void` | Adds a Column Definition to the Grid |
| [addGridData(dataRows, config)](https://www.adaptabletools.com/docs/reference/gridapi.md#addgriddata) | `Promise<IRowNode[]>` | Adds rows to AdapTable (and AG Grid) |
| [addOrUpdateGridData(dataRows, config)](https://www.adaptabletools.com/docs/reference/gridapi.md#addorupdategriddata) | `Promise<\{ addedRows: IRowNode[]; updatedRows: IRowNode[]; \}>` | Adds or Updates AdapTable (and AG Grid) with new and changed rows<br/><br/>Rows whose Primary Key value is in the grid are updated, and reported as in `updateGridData`. |
| [applyFiltering()](https://www.adaptabletools.com/docs/reference/gridapi.md#applyfiltering) | `void` | Applies current Filtering in AdapTable |
| [clearAdaptableSorting()](https://www.adaptabletools.com/docs/reference/gridapi.md#clearadaptablesorting) | `void` | Removes Column Sorts in AdapTable |
| [clearFiltering()](https://www.adaptabletools.com/docs/reference/gridapi.md#clearfiltering) | `void` | Removes all current Filters in AdapTable |
| [clearRowGroupColumns()](https://www.adaptabletools.com/docs/reference/gridapi.md#clearrowgroupcolumns) | `void` | Clears Row Grouping in the Grid |
| [closeTransposedView()](https://www.adaptabletools.com/docs/reference/gridapi.md#closetransposedview) | `void` | Closes the transposed view of the Grid (if open) |
| [collapseAllRowGroups()](https://www.adaptabletools.com/docs/reference/gridapi.md#collapseallrowgroups) | `void` | Collapse all open groups in Row Grouping |
| [deleteGridData(dataRows, config)](https://www.adaptabletools.com/docs/reference/gridapi.md#deletegriddata) | `Promise<IRowNode[]>` | Deletes rows from AdapTable (and AG Grid) |
| [deselectAll()](https://www.adaptabletools.com/docs/reference/gridapi.md#deselectall) | `void` | Deselects all selected rows, cells and ranges |
| [deSelectNode(rowNode, clearSelection)](https://www.adaptabletools.com/docs/reference/gridapi.md#deselectnode) | `void` | Deselects the AG Grid Row Node in AdapTable |
| [deSelectNodes(rowNodes, clearSelection)](https://www.adaptabletools.com/docs/reference/gridapi.md#deselectnodes) | `void` | AG Grid Row Nodes in AdapTable |
| [deSelectRow(primaryKeyValue, clearSelection)](https://www.adaptabletools.com/docs/reference/gridapi.md#deselectrow) | `void` | Deselects Row with given Primary Key Value |
| [deSelectRows(primaryKeyValues, clearSelection)](https://www.adaptabletools.com/docs/reference/gridapi.md#deselectrows) | `void` | Deselects Row with given Primary Key Values |
| [expandAllRowGroups()](https://www.adaptabletools.com/docs/reference/gridapi.md#expandallrowgroups) | `void` | Expands all closed groups in Row Grouping |
| [expandRowGroupsForValues(columnValues)](https://www.adaptabletools.com/docs/reference/gridapi.md#expandrowgroupsforvalues) | `void` | Expands Row Groups that contain given keys |
| [getAgGridRowModelType()](https://www.adaptabletools.com/docs/reference/gridapi.md#getaggridrowmodeltype) | `RowModelType` | Returns AG Grid Row Model Type |
| [getAllAgGridColumns()](https://www.adaptabletools.com/docs/reference/gridapi.md#getallaggridcolumns) | `Column<any>[]` | Return all AG Grid columns |
| [getAllRowNodes(config)](https://www.adaptabletools.com/docs/reference/gridapi.md#getallrownodes) | `IRowNode[]` | Retrieves all Row Nodes currently in the Grid (by default excluding the group rows) |
| [getCellDisplayValue(primaryKeyValue, columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#getcelldisplayvalue) | `any \| undefined` | Retrieves Display Value for a given cell |
| [getCellNormalisedValue(primaryKeyValue, columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#getcellnormalisedvalue) | `any \| undefined` | Retrieves Normalised Value for a given cell |
| [getCellRawValue(primaryKeyValue, columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#getcellrawvalue) | `any \| undefined` | Retrieves Raw Value for a given cell |
| [getCellRawValueCount(columnId, rawValue)](https://www.adaptabletools.com/docs/reference/gridapi.md#getcellrawvaluecount) | `number` | Gets the count of the cells in a Column that have the given Raw Value |
| [getCellSummaryInfo()](https://www.adaptabletools.com/docs/reference/gridapi.md#getcellsummaryinfo) | [`CellSummmaryInfo`](https://www.adaptabletools.com/docs/reference/cellsummmaryinfo.md) | Returns summary info on Selected Cells |
| [getColumnCount()](https://www.adaptabletools.com/docs/reference/gridapi.md#getcolumncount) | `number` | Number of columns in the grid, including hidden columns. |
| [getColumnData(columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#getcolumndata) | `any[]` | Retrieves all the values for a single Column. |
| [getColumnSortForColumn(columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#getcolumnsortforcolumn) | [`ColumnSort`](https://www.adaptabletools.com/docs/reference/columnsort.md)` \| undefined` | Retrieves ColumnSort for a given Column |
| [getColumnSorts()](https://www.adaptabletools.com/docs/reference/gridapi.md#getcolumnsorts) | [`ColumnSort`](https://www.adaptabletools.com/docs/reference/columnsort.md)`[]` | Returns Column Sort information in AdapTable |
| [getDisplayedData()](https://www.adaptabletools.com/docs/reference/gridapi.md#getdisplayeddata) | `any[]` | Retrieves the displayed (formatted but not styled) data from the grid (filtered and sorted and visible columns only) |
| [getDisplayValueFromRawValue(rowNode, columnId, rawValue)](https://www.adaptabletools.com/docs/reference/gridapi.md#getdisplayvaluefromrawvalue) | `string \| undefined` | Retrieves Formatted Value for a given Raw Value in given Column |
| [getDisplayValueFromRowNode(rowNode, columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#getdisplayvaluefromrownode) | `any \| undefined` | Retrieves Display Value for Cell in given Row and Column |
| [getDistinctColumnValues(columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#getdistinctcolumnvalues) | `any[]` | Retrieves the distinct raw values currently in a Column, sorted.<br/><br/>Useful when building dropdown options (e.g. Action Column `select`, Forms)<br/>from values that already exist in the Grid.<br/><br/>Returns an empty array if the Column is unknown. |
| [getFilteredColumnData(columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#getfilteredcolumndata) | `any[]` | Retrieves the filtered values for a single Column. |
| [getFilteredData()](https://www.adaptabletools.com/docs/reference/gridapi.md#getfiltereddata) | `any[]` | Retrieves filtered data from the grid |
| [getFirstDisplayedRowNode()](https://www.adaptabletools.com/docs/reference/gridapi.md#getfirstdisplayedrownode) | `IRowNode \| undefined` | Retrieves the first Displayed Row Node in AdapTable |
| [getFirstRowNode()](https://www.adaptabletools.com/docs/reference/gridapi.md#getfirstrownode) | `IRowNode \| undefined` | Retrieves the first Row Node in AdapTable |
| [getGridCellFromRowNode(rowNode, columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#getgridcellfromrownode) | [`GridCell`](https://www.adaptabletools.com/docs/reference/gridcell.md)` \| undefined` | Retrieves Cell in given Row and Column |
| [getGridCellsForDisplayValue(columnId, displayValue)](https://www.adaptabletools.com/docs/reference/gridapi.md#getgridcellsfordisplayvalue) | [`GridCell`](https://www.adaptabletools.com/docs/reference/gridcell.md)`[] \| undefined` | Returns all the Grid Cells in a Column that have the given Display Value |
| [getGridCellsForRawValue(columnId, rawValue)](https://www.adaptabletools.com/docs/reference/gridapi.md#getgridcellsforrawvalue) | [`GridCell`](https://www.adaptabletools.com/docs/reference/gridcell.md)`[] \| undefined` | Returns all the Grid Cells in a Column that have the given Raw Value |
| [getGridContainerElement()](https://www.adaptabletools.com/docs/reference/gridapi.md#getgridcontainerelement) | `HTMLElement \| null` | Returns the Grid Container in which the AdapTable Instance is present |
| [getGridData()](https://www.adaptabletools.com/docs/reference/gridapi.md#getgriddata) | `any[]` | Retrieves all data from the grid |
| [getGroupRowNodes(config)](https://www.adaptabletools.com/docs/reference/gridapi.md#getgrouprownodes) | `IRowNode[]` | Retrieves all Grouped Row Nodes currently in the Grid |
| [getInternalState()](https://www.adaptabletools.com/docs/reference/gridapi.md#getinternalstate) | `InternalState` | Returns the Internal section from AdapTable State |
| [getNormalisedValueFromRowNode(rowNode, columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#getnormalisedvaluefromrownode) | `any \| undefined` | Retrieves Normalised Value for Cell in given Row and Column |
| [getPrimaryKeyValueForRowNode(rowNode)](https://www.adaptabletools.com/docs/reference/gridapi.md#getprimarykeyvalueforrownode) | `any` | Returns the Primary Key Value for a given Row Node |
| [getPrimaryKeyValuesForRowNodes(rowNodes)](https://www.adaptabletools.com/docs/reference/gridapi.md#getprimarykeyvaluesforrownodes) | `any[]` | Returns the Primary Key Values for a given Row Node collection |
| [getRawValueFromRowNode(rowNode, columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#getrawvaluefromrownode) | `any \| undefined` | Retrieves Raw Value for Cell in given Row and Column |
| [getRowCount()](https://www.adaptabletools.com/docs/reference/gridapi.md#getrowcount) | `number` | Number of data rows, excluding group rows. |
| [getRowNodeForIndex(rowIndex)](https://www.adaptabletools.com/docs/reference/gridapi.md#getrownodeforindex) | `IRowNode \| undefined` | Retrieves the displayed RowNode at the given index |
| [getRowNodeForPrimaryKey(primaryKeyValue)](https://www.adaptabletools.com/docs/reference/gridapi.md#getrownodeforprimarykey) | `IRowNode` | Retrieves Row Node that contains given Primary Key |
| [getRowNodesForPrimaryKeys(primaryKeyValues)](https://www.adaptabletools.com/docs/reference/gridapi.md#getrownodesforprimarykeys) | `IRowNode[]` | Retrieves Row Nodes that contain given Primary Keys |
| [getSelectedCellInfo()](https://www.adaptabletools.com/docs/reference/gridapi.md#getselectedcellinfo) | [`SelectedCellInfo`](https://www.adaptabletools.com/docs/reference/selectedcellinfo.md) | Returns all current Selected Cells in AdapTable |
| [getSelectedRowInfo()](https://www.adaptabletools.com/docs/reference/gridapi.md#getselectedrowinfo) | [`SelectedRowInfo`](https://www.adaptabletools.com/docs/reference/selectedrowinfo.md) | Returns all current Selected Rows in AdapTable |
| [getVariant()](https://www.adaptabletools.com/docs/reference/gridapi.md#getvariant) | `AdaptableVariant` | Returns current AdapTable Variant: vanilla, angular, react, vue |
| [getVisibleColumnCount()](https://www.adaptabletools.com/docs/reference/gridapi.md#getvisiblecolumncount) | `number` | Number of columns that are currently visible. |
| [getVisibleColumnData(columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#getvisiblecolumndata) | `any[]` | Retrieves the visible (filtered and sorted) values for a single Column. |
| [getVisibleData()](https://www.adaptabletools.com/docs/reference/gridapi.md#getvisibledata) | `any[]` | Retrieves visible data from the grid (filtered and sorted from visible columns only) |
| [getVisibleRowCount()](https://www.adaptabletools.com/docs/reference/gridapi.md#getvisiblerowcount) | `number` | Number of rows currently displayed, after filtering. |
| [getVisibleRowNodes(config)](https://www.adaptabletools.com/docs/reference/gridapi.md#getvisiblerownodes) | `IRowNode[]` | Retrieves all filtered Row Nodes currently in the Grid (i.e. after applying the current filter) |
| [highlightCell(cellHighlightInfo)](https://www.adaptabletools.com/docs/reference/gridapi.md#highlightcell) | `void` | Highlights a Cell in AdapTable |
| [highlightColumn(columnHighlightInfo)](https://www.adaptabletools.com/docs/reference/gridapi.md#highlightcolumn) | `void` | Highlights a Column in AdapTable |
| [highlightRow(rowHighlightInfo)](https://www.adaptabletools.com/docs/reference/gridapi.md#highlightrow) | `void` | Highlight a row using an adaptable style |
| [highlightRows(rowsHighlightInfo)](https://www.adaptabletools.com/docs/reference/gridapi.md#highlightrows) | `void` | Highlight rows using an adaptable style |
| [isCellEditable(gridCell)](https://www.adaptabletools.com/docs/reference/gridapi.md#iscelleditable) | `boolean` | Checks if given Grid Cell is editable |
| [isCellEdited(gridCell)](https://www.adaptabletools.com/docs/reference/gridapi.md#iscelledited) | `boolean` | Checks if given Grid Cell has been edited (uses Data Change History) |
| [isEveryCellEditable(gridCells)](https://www.adaptabletools.com/docs/reference/gridapi.md#iseverycelleditable) | `boolean` | Checks if all of given Grid Cells are editable |
| [isGrandTotalRowNode(rowNode)](https://www.adaptabletools.com/docs/reference/gridapi.md#isgrandtotalrownode) | `boolean` | Whether given Row Node is a Grand Total Row |
| [isGridGroupable()](https://www.adaptabletools.com/docs/reference/gridapi.md#isgridgroupable) | `boolean` | Whether AdapTable instance can be Row Grouped |
| [isGridInPivotMode()](https://www.adaptabletools.com/docs/reference/gridapi.md#isgridinpivotmode) | `boolean` | Whether Grid is currently in Pivot Mode |
| [isGridPivotable()](https://www.adaptabletools.com/docs/reference/gridapi.md#isgridpivotable) | `boolean` | Whether AdapTable instance can be pivoted |
| [isGridRangeSelectable()](https://www.adaptabletools.com/docs/reference/gridapi.md#isgridrangeselectable) | `boolean` | Whether AdapTable instance offers cell range selection |
| [isGridRowGrouped()](https://www.adaptabletools.com/docs/reference/gridapi.md#isgridrowgrouped) | `boolean` | Whether Grid is currently showing Row Groups |
| [isGridRowSelectable()](https://www.adaptabletools.com/docs/reference/gridapi.md#isgridrowselectable) | `boolean` | Whether AdapTable instance offers row selection |
| [isGridRowSelected(primaryKeyValue)](https://www.adaptabletools.com/docs/reference/gridapi.md#isgridrowselected) | `boolean` | Whether a Row is selected |
| [isGroupRowNode(rowNode)](https://www.adaptabletools.com/docs/reference/gridapi.md#isgrouprownode) | `boolean` | Whether given Row Node is a Row Group |
| [isMasterDetailGrid()](https://www.adaptabletools.com/docs/reference/gridapi.md#ismasterdetailgrid) | `boolean` | Whether Grid is a Master Detail Grid |
| [isQuickFilterAvailable()](https://www.adaptabletools.com/docs/reference/gridapi.md#isquickfilteravailable) | `boolean` | Whether Quick Filter is available in the Grid |
| [isSummaryNode(rowNode)](https://www.adaptabletools.com/docs/reference/gridapi.md#issummarynode) | `boolean` | Whether given Row Node is in a Summary Row |
| [isTreeDataGrid()](https://www.adaptabletools.com/docs/reference/gridapi.md#istreedatagrid) | `boolean` | Whether Grid displays a Tree Data (structured hierarchical data) |
| [isVisibleRowNode(rowNode)](https://www.adaptabletools.com/docs/reference/gridapi.md#isvisiblerownode) | `boolean` | Whether given Row Node is visible |
| [jumpToCell(primaryKeyValue, columnId, rowNode)](https://www.adaptabletools.com/docs/reference/gridapi.md#jumptocell) | `void` | Grid will jump to cell in a given Row and Column |
| [jumpToColumn(columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#jumptocolumn) | `void` | Grid will jump to Column that has given ColumnId |
| [jumpToRow(primaryKeyValue)](https://www.adaptabletools.com/docs/reference/gridapi.md#jumptorow) | `void` | Grid will jump to Row containing given Primary Key Value |
| [loadGridData(data)](https://www.adaptabletools.com/docs/reference/gridapi.md#loadgriddata) | `void` | Loads data into grid and fire a `RowChanged.trigger='Load'` event |
| [manageGridData(dataRowConfig, dataUpdateConfig)](https://www.adaptabletools.com/docs/reference/gridapi.md#managegriddata) | `Promise<\{ addedRows: IRowNode[]; updatedRows: IRowNode[]; removedRows: IRowNode[]; \}>` | Adds, Updates or Deletes rows in AdapTable (and AG Grid) in single transaction<br/><br/>Updated rows are reported as in `updateGridData`. |
| [openGridInfoSettingsPanel()](https://www.adaptabletools.com/docs/reference/gridapi.md#opengridinfosettingspanel) | `void` | Opens Settings Panel with Grid Info section selected and visible |
| [redrawGrid()](https://www.adaptabletools.com/docs/reference/gridapi.md#redrawgrid) | `void` | Redraws AdapTable (expensive operation so use sparingly) |
| [refreshAllCells(forceUpdate)](https://www.adaptabletools.com/docs/reference/gridapi.md#refreshallcells) | `void` | Refreshes all Cells in the Grid |
| [refreshCell(rowNode, columnId, suppressFlash)](https://www.adaptabletools.com/docs/reference/gridapi.md#refreshcell) | `void` | Refresh a Cell Value in AdapTable |
| [refreshCells(rowNode, columnIds, suppressFlash)](https://www.adaptabletools.com/docs/reference/gridapi.md#refreshcells) | `void` | Refresh Cell Values in AdapTable |
| [refreshColumn(columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#refreshcolumn) | `void` | Refresh Column Values in AdapTable |
| [refreshColumns(columnIds)](https://www.adaptabletools.com/docs/reference/gridapi.md#refreshcolumns) | `void` | Refresh Columns Values in AdapTable |
| [refreshGridCell(gridCell)](https://www.adaptabletools.com/docs/reference/gridapi.md#refreshgridcell) | `void` | Refreshes a single Grid Cell |
| [refreshGridCells(gridCells)](https://www.adaptabletools.com/docs/reference/gridapi.md#refreshgridcells) | `void` | Refreshes a set of Grid Cells |
| [refreshGridHeader()](https://www.adaptabletools.com/docs/reference/gridapi.md#refreshgridheader) | `void` | Forces a re-render of the Grid Header |
| [refreshGroupRowNodes()](https://www.adaptabletools.com/docs/reference/gridapi.md#refreshgrouprownodes) | `void` | Forces a re-render of all Group Rows (including aggregations) |
| [refreshRowByPrimaryKey(primaryKey)](https://www.adaptabletools.com/docs/reference/gridapi.md#refreshrowbyprimarykey) | `void` | Forces a re-render of Row with given Primary Key value |
| [refreshRowNode(rowNode)](https://www.adaptabletools.com/docs/reference/gridapi.md#refreshrownode) | `void` | Forces a re-render of the given row |
| [refreshRowNodes(rowNodes)](https://www.adaptabletools.com/docs/reference/gridapi.md#refreshrownodes) | `void` | Forces re-render of given rows (if none provided, all rows are refreshed) |
| [removeAgGridColumnDefinition(columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#removeaggridcolumndefinition) | `void` | Removes the Column Definition for a given Column. |
| [selectAll()](https://www.adaptabletools.com/docs/reference/gridapi.md#selectall) | `void` | Select the whole Grid |
| [selectCellRange(gridCellRange, clearSelection)](https://www.adaptabletools.com/docs/reference/gridapi.md#selectcellrange) | `void` | Selects a group of cells in a given range - provide either primary keys or row indexes |
| [selectCellRangeByQuery(query, gridCellRange, clearSelection)](https://www.adaptabletools.com/docs/reference/gridapi.md#selectcellrangebyquery) | `void` | Selects a group of cells in a given range using a query |
| [selectColumn(columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#selectcolumn) | `void` | Selects a Column in AG Grid |
| [selectColumns(columnIds)](https://www.adaptabletools.com/docs/reference/gridapi.md#selectcolumns) | `void` | Selects Columns in AG Grid |
| [selectNode(rowNode, clearSelection)](https://www.adaptabletools.com/docs/reference/gridapi.md#selectnode) | `void` | Selects the AG Grid Row Node in AdapTable |
| [selectNodes(rowNodes, clearSelection)](https://www.adaptabletools.com/docs/reference/gridapi.md#selectnodes) | `void` | Selects the AG Grid Row Nodes in AdapTable |
| [selectRow(primaryKeyValue, clearSelection)](https://www.adaptabletools.com/docs/reference/gridapi.md#selectrow) | `void` | Selects Row with given Primary Key Value |
| [selectRows(primaryKeyValues, clearSelection)](https://www.adaptabletools.com/docs/reference/gridapi.md#selectrows) | `void` | Selects Rows with given Primary Key Values |
| [setAdaptableSorting(columnSorts)](https://www.adaptabletools.com/docs/reference/gridapi.md#setadaptablesorting) | `void` | Sorts AdapTable using given Column Sorts |
| [setAgGridColumnDefinitions(columnDefinitions)](https://www.adaptabletools.com/docs/reference/gridapi.md#setaggridcolumndefinitions) | `void` | Replaces the grid&#39;s column definitions. |
| [setCellValue(cellUpdateRequest)](https://www.adaptabletools.com/docs/reference/gridapi.md#setcellvalue) | `void` | Updates cell in AdapTable (as an AG Grid edit) |
| [setCellValues(cellUpdateRequests)](https://www.adaptabletools.com/docs/reference/gridapi.md#setcellvalues) | `void` | Updates multiple cells<br/><br/>Filters are re-applied once per call, not once per cell, and the Alerts the edits fire are<br/>consolidated (see `AlertOptions.consolidateBatchAlerts`). |
| [setRowGroupColumns(columnIds)](https://www.adaptabletools.com/docs/reference/gridapi.md#setrowgroupcolumns) | `void` | Sets the grid to Row Group |
| [showTransposedView(transposeConfig)](https://www.adaptabletools.com/docs/reference/gridapi.md#showtransposedview) | `void` | Opens a window with a transposed view of the grid. |
| [undoCellEdit(cellDataChangedInfo)](https://www.adaptabletools.com/docs/reference/gridapi.md#undocelledit) | `boolean` | Reverses a data change (if triggered by cell edit) |
| [unHighlightAllCells()](https://www.adaptabletools.com/docs/reference/gridapi.md#unhighlightallcells) | `void` | Unhighlights all highlighted Cells in AdapTable |
| [unHighlightAllColumns()](https://www.adaptabletools.com/docs/reference/gridapi.md#unhighlightallcolumns) | `void` | Unhighlights all highlighted Columns in AdapTable |
| [unHighlightAllRows()](https://www.adaptabletools.com/docs/reference/gridapi.md#unhighlightallrows) | `void` | Remove all highlighted rows |
| [unHighlightCell(primaryKeyValue, columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#unhighlightcell) | `void` | Unhighlights a Cell in AdapTable |
| [unHighlightColumn(columnId)](https://www.adaptabletools.com/docs/reference/gridapi.md#unhighlightcolumn) | `void` | Unhighlights a Column in AdapTable |
| [unHighlightRow(primaryKeyValue)](https://www.adaptabletools.com/docs/reference/gridapi.md#unhighlightrow) | `void` | Remove highlight from Row |
| [unHighlightRows(primaryKeyValues)](https://www.adaptabletools.com/docs/reference/gridapi.md#unhighlightrows) | `void` | Remove highlight from given Rows |
| [updateAgGridColumnDefinition(columnDefinition)](https://www.adaptabletools.com/docs/reference/gridapi.md#updateaggridcolumndefinition) | `void` | Merges non-stateful AG Grid column properties into an existing column definition. The column is matched by `colId`. A column that does not exist yet is added. |
| [updateAgGridColumnDefinitions(columnDefinitions)](https://www.adaptabletools.com/docs/reference/gridapi.md#updateaggridcolumndefinitions) | `void` | Merges non-stateful AG Grid column properties into the given column definitions. Each column is matched by `colId`. |
| [updateAgGridColumnState(columnState)](https://www.adaptabletools.com/docs/reference/gridapi.md#updateaggridcolumnstate) | `void` | Updates Ag Grid Column State for a given Column; use to update STATEFUL AG Grid Column props |
| [updateAgGridColumnStates(columnStates)](https://www.adaptabletools.com/docs/reference/gridapi.md#updateaggridcolumnstates) | `void` | Updates Ag Grid Column State for given Columns; use to update STATEFUL AG Grid Column props |
| [updateGridData(dataRows, config)](https://www.adaptabletools.com/docs/reference/gridapi.md#updategriddata) | `Promise<IRowNode[]>` | Updates AdapTable (and AG Grid) with rows that have changed<br/><br/>Each row is compared with the row it replaces, whether rendered or not, and every changed cell<br/>fires a Cell Changed Event. Filters are re-applied once per call, not once per row. |

## Method Details

### addAgGridColumnDefinition

Adds a Column Definition to the Grid

```ts title="TypeScript"
addAgGridColumnDefinition(columnDefinition: ColDefWithId): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnDefinition | [`ColDefWithId`](https://www.adaptabletools.com/docs/reference/coldefwithid.md) | the new Column Definition |

###### Returns

`void`

### addGridData

Adds rows to AdapTable (and AG Grid)

```ts title="TypeScript"
addGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| dataRows | `any[]` | rows to add; ensure all &#39;mandatory&#39; fields are included and Primary Key is unique |
| config | [`DataUpdateConfig`](https://www.adaptabletools.com/docs/reference/dataupdateconfig.md) | batch option and callback function to run post addition |

###### Returns

 The row nodes that were added

`Promise<IRowNode[]>`

### addOrUpdateGridData

Adds or Updates AdapTable (and AG Grid) with new and changed rows

Rows whose Primary Key value is in the grid are updated, and reported as in `updateGridData`.

```ts title="TypeScript"
addOrUpdateGridData(dataRows: any[], config?: DataUpdateConfig): Promise<{
        addedRows: IRowNode[];
        updatedRows: IRowNode[];
    }>;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| dataRows | `any[]` | rows to add or update; an updated row must be a new object, not the row&#39;s current data changed in place |
| config | [`DataUpdateConfig`](https://www.adaptabletools.com/docs/reference/dataupdateconfig.md) | batch option and callback function to run post change |

###### Returns

 The row nodes that were added and the row nodes that were updated

`Promise<\{ addedRows: IRowNode[]; updatedRows: IRowNode[]; \}>`

### applyFiltering

Applies current Filtering in AdapTable

```ts title="TypeScript"
applyFiltering(): void;
```

###### Returns

`void`

### clearAdaptableSorting

Removes Column Sorts in AdapTable

```ts title="TypeScript"
clearAdaptableSorting(): void;
```

###### Returns

`void`

### clearFiltering

Removes all current Filters in AdapTable

```ts title="TypeScript"
clearFiltering(): void;
```

###### Returns

`void`

### clearRowGroupColumns

Clears Row Grouping in the Grid

```ts title="TypeScript"
clearRowGroupColumns(): void;
```

###### Returns

`void`

### closeTransposedView

Closes the transposed view of the Grid (if open)

```ts title="TypeScript"
closeTransposedView(): void;
```

###### Returns

`void`

### collapseAllRowGroups

Collapse all open groups in Row Grouping

```ts title="TypeScript"
collapseAllRowGroups(): void;
```

###### Returns

`void`

### deleteGridData

Deletes rows from AdapTable (and AG Grid)

```ts title="TypeScript"
deleteGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| dataRows | `any[]` | rows which should be deleted |
| config | [`DataUpdateConfig`](https://www.adaptabletools.com/docs/reference/dataupdateconfig.md) | batch option and callback function to run post deletion |

###### Returns

 The row nodes that were deleted. Empty when no rows were passed

`Promise<IRowNode[]>`

### deselectAll

Deselects all selected rows, cells and ranges

```ts title="TypeScript"
deselectAll(): void;
```

###### Returns

`void`

### deSelectNode

Deselects the AG Grid Row Node in AdapTable

```ts title="TypeScript"
deSelectNode(rowNode: IRowNode, clearSelection: boolean): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNode | `IRowNode` | Node to DeSelect |
| clearSelection | `boolean` | Whether to clear current selection in grid |

###### Returns

`void`

### deSelectNodes

AG Grid Row Nodes in AdapTable

```ts title="TypeScript"
deSelectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNodes | `IRowNode[]` | Nodes to DeSelect |
| clearSelection | `boolean` | Whether to clear current selection in grid |

###### Returns

`void`

### deSelectRow

Deselects Row with given Primary Key Value

```ts title="TypeScript"
deSelectRow(primaryKeyValue: any, clearSelection: boolean): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKeyValue | `any` | Primary Key Value of Row to deselect |
| clearSelection | `boolean` | Whether to clear current selection in grid |

###### Returns

`void`

### deSelectRows

Deselects Row with given Primary Key Values

```ts title="TypeScript"
deSelectRows(primaryKeyValues: any[], clearSelection: boolean): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKeyValues | `any[]` | Primary Key Values of Rows to deselect |
| clearSelection | `boolean` | Whether to clear current selection in grid |

###### Returns

`void`

### expandAllRowGroups

Expands all closed groups in Row Grouping

```ts title="TypeScript"
expandAllRowGroups(): void;
```

###### Returns

`void`

### expandRowGroupsForValues

Expands Row Groups that contain given keys

```ts title="TypeScript"
expandRowGroupsForValues(columnValues: any[]): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnValues | `any[]` | values to open Row Groups for |

###### Returns

`void`

### getAgGridRowModelType

Returns AG Grid Row Model Type

```ts title="TypeScript"
getAgGridRowModelType(): RowModelType;
```

###### Returns

 AG Grid Row Model Type

`RowModelType`

### getAllAgGridColumns

Return all AG Grid columns

```ts title="TypeScript"
getAllAgGridColumns(): Column<any>[];
```

###### Returns

 Every AG Grid column, including hidden columns

`Column<any>[]`

### getAllRowNodes

Retrieves all Row Nodes currently in the Grid (by default excluding the group rows)

```ts title="TypeScript"
getAllRowNodes(config?: {
        includeGroupRows?: boolean;
        filterFn?(rowNode: IRowNode): boolean;
    }): IRowNode[];
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| config | `\{ includeGroupRows?: boolean; filterFn?(rowNode: IRowNode): boolean; \}` | configuration |

###### Returns

 All Row Nodes currently in the Grid (by default excluding the group rows)

`IRowNode[]`

### getCellDisplayValue

Retrieves Display Value for a given cell

```ts title="TypeScript"
getCellDisplayValue(primaryKeyValue: any, columnId: string): any | undefined;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKeyValue | `any` | (unique) value in Primary Key Column |
| columnId | `string` | name of Column which contains the cell |

###### Returns

 Display Value for a given cell. `undefined` when there is no match

`any | undefined`

### getCellNormalisedValue

Retrieves Normalised Value for a given cell

```ts title="TypeScript"
getCellNormalisedValue(primaryKeyValue: any, columnId: string): any | undefined;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKeyValue | `any` | (unique) value in Primary Key Column |
| columnId | `string` | name of Column which contains the cell |

###### Returns

 Normalised Value for a given cell. `undefined` when there is no match

`any | undefined`

### getCellRawValue

Retrieves Raw Value for a given cell

```ts title="TypeScript"
getCellRawValue(primaryKeyValue: any, columnId: string): any | undefined;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKeyValue | `any` | (unique) value in Primary Key Column |
| columnId | `string` | name of Column which contains the cell |

###### Returns

 Raw Value for a given cell. `undefined` when there is no match

`any | undefined`

### getCellRawValueCount

Gets the count of the cells in a Column that have the given Raw Value

```ts title="TypeScript"
getCellRawValueCount(columnId: string, rawValue: any): number;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnId | `string` | ColumnId to lookup |
| rawValue | `any` | Raw Value to use |

###### Returns

 How many cells in the column have that raw value

`number`

### getCellSummaryInfo

Returns summary info on Selected Cells

```ts title="TypeScript"
getCellSummaryInfo(): CellSummmaryInfo;
```

###### Returns

 Summary info on Selected Cells

[`CellSummmaryInfo`](https://www.adaptabletools.com/docs/reference/cellsummmaryinfo.md)

### getColumnCount

Number of columns in the grid, including hidden columns.

```ts title="TypeScript"
getColumnCount(): number;
```

###### Returns

 Number of columns in the grid, including hidden columns

`number`

### getColumnData

Retrieves all the values for a single Column.

```ts title="TypeScript"
getColumnData(columnId: string): any[];
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnId | `string` | the Column to read the values from |

###### Returns

 All the values for a single Column

`any[]`

### getColumnSortForColumn

Retrieves ColumnSort for a given Column

```ts title="TypeScript"
getColumnSortForColumn(columnId: string): ColumnSort | undefined;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnId | `string` | Id of Column to retrieve ColumnSort |

###### Returns

 ColumnSort for a given Column. `undefined` when there is no match

[`ColumnSort`](https://www.adaptabletools.com/docs/reference/columnsort.md)` | undefined`

### getColumnSorts

Returns Column Sort information in AdapTable

```ts title="TypeScript"
getColumnSorts(): ColumnSort[];
```

###### Returns

 Column Sort information in AdapTable

[`ColumnSort`](https://www.adaptabletools.com/docs/reference/columnsort.md)`[]`

### getDisplayedData

Retrieves the displayed (formatted but not styled) data from the grid (filtered and sorted and visible columns only)

```ts title="TypeScript"
getDisplayedData(): any[];
```

###### Returns

 The displayed (formatted but not styled) data from the grid (filtered and sorted and visible columns only)

`any[]`

### getDisplayValueFromRawValue

Retrieves Formatted Value for a given Raw Value in given Column

```ts title="TypeScript"
getDisplayValueFromRawValue(rowNode: IRowNode, columnId: string, rawValue: any): string | undefined;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNode | `IRowNode` | Node containig the Column |
| columnId | `string` | ColumnId to lookup |
| rawValue | `any` | Raw Value |

###### Returns

 Formatted Value for a given Raw Value in given Column. `undefined` when there is no match

`string | undefined`

### getDisplayValueFromRowNode

Retrieves Display Value for Cell in given Row and Column

```ts title="TypeScript"
getDisplayValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNode | `IRowNode` | Row to use |
| columnId | `string` | ColumnId to lookup |

###### Returns

 Display Value for Cell in given Row and Column. `undefined` when there is no match

`any | undefined`

### getDistinctColumnValues

Retrieves the distinct raw values currently in a Column, sorted.

Useful when building dropdown options (e.g. Action Column `select`, Forms)
from values that already exist in the Grid.

Returns an empty array if the Column is unknown.

```ts title="TypeScript"
getDistinctColumnValues(columnId: string): any[];
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnId | `string` | the Column to read the values from |

###### Returns

 The distinct raw values currently in a Column, sorted. Useful when building dropdown options (e.g. Action Column `select`, Forms) from values that already exist in the Grid. Returns an empty array if the Column is unknown

`any[]`

### getFilteredColumnData

Retrieves the filtered values for a single Column.

```ts title="TypeScript"
getFilteredColumnData(columnId: string): any[];
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnId | `string` | the Column to read the values from |

###### Returns

 The filtered values for a single Column

`any[]`

### getFilteredData

Retrieves filtered data from the grid

```ts title="TypeScript"
getFilteredData(): any[];
```

###### Returns

 Filtered data from the grid

`any[]`

### getFirstDisplayedRowNode

Retrieves the first Displayed Row Node in AdapTable

```ts title="TypeScript"
getFirstDisplayedRowNode(): IRowNode | undefined;
```

###### Returns

 The first Displayed Row Node in AdapTable. `undefined` when there is no match

`IRowNode | undefined`

### getFirstRowNode

Retrieves the first Row Node in AdapTable

```ts title="TypeScript"
getFirstRowNode(): IRowNode | undefined;
```

###### Returns

 The first Row Node in AdapTable. `undefined` when there is no match

`IRowNode | undefined`

### getGridCellFromRowNode

Retrieves Cell in given Row and Column

```ts title="TypeScript"
getGridCellFromRowNode(rowNode: IRowNode, columnId: string): GridCell | undefined;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNode | `IRowNode` | Row to use |
| columnId | `string` | ColumnId to lookup |

###### Returns

 Cell in given Row and Column. `undefined` when there is no match

[`GridCell`](https://www.adaptabletools.com/docs/reference/gridcell.md)` | undefined`

### getGridCellsForDisplayValue

Returns all the Grid Cells in a Column that have the given Display Value

```ts title="TypeScript"
getGridCellsForDisplayValue(columnId: string, displayValue: any): GridCell[] | undefined;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnId | `string` | ColumnId to lookup |
| displayValue | `any` | Display Value to use |

###### Returns

 Cells whose display value matches. `undefined` when the column is unknown; an empty array when no cell has that value

[`GridCell`](https://www.adaptabletools.com/docs/reference/gridcell.md)`[] | undefined`

### getGridCellsForRawValue

Returns all the Grid Cells in a Column that have the given Raw Value

```ts title="TypeScript"
getGridCellsForRawValue(columnId: string, rawValue: any): GridCell[] | undefined;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnId | `string` | ColumnId to lookup |
| rawValue | `any` | Raw Value to use |

###### Returns

 Cells whose raw value matches. `undefined` when the column is unknown; an empty array when no cell has that value

[`GridCell`](https://www.adaptabletools.com/docs/reference/gridcell.md)`[] | undefined`

### getGridContainerElement

Returns the Grid Container in which the AdapTable Instance is present

```ts title="TypeScript"
getGridContainerElement(): HTMLElement | null;
```

###### Returns

 The Grid Container in which the AdapTable Instance is present

`HTMLElement | null`

### getGridData

Retrieves all data from the grid

```ts title="TypeScript"
getGridData(): any[];
```

###### Returns

 All data from the grid

`any[]`

### getGroupRowNodes

Retrieves all Grouped Row Nodes currently in the Grid

```ts title="TypeScript"
getGroupRowNodes(config?: {
        filterFn?(rowNode: IRowNode): boolean;
    }): IRowNode[];
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| config | `\{ filterFn?(rowNode: IRowNode): boolean; \}` | configuration |

###### Returns

 All Grouped Row Nodes currently in the Grid

`IRowNode[]`

### getInternalState

Returns the Internal section from AdapTable State

```ts title="TypeScript"
getInternalState(): InternalState;
```

###### Returns

 The Internal section from AdapTable State

`InternalState`

### getNormalisedValueFromRowNode

Retrieves Normalised Value for Cell in given Row and Column

```ts title="TypeScript"
getNormalisedValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNode | `IRowNode` | Row to use |
| columnId | `string` | ColumnId to lookup |

###### Returns

 Normalised Value for Cell in given Row and Column. `undefined` when there is no match

`any | undefined`

### getPrimaryKeyValueForRowNode

Returns the Primary Key Value for a given Row Node

```ts title="TypeScript"
getPrimaryKeyValueForRowNode(rowNode: IRowNode): any;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNode | `IRowNode` | rowNode to look up |

###### Returns

 The Primary Key Value for a given Row Node

`any`

### getPrimaryKeyValuesForRowNodes

Returns the Primary Key Values for a given Row Node collection

```ts title="TypeScript"
getPrimaryKeyValuesForRowNodes(rowNodes: IRowNode[]): any[];
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNodes | `IRowNode[]` | Row nodes to look up |

###### Returns

 The Primary Key Values for a given Row Node collection

`any[]`

### getRawValueFromRowNode

Retrieves Raw Value for Cell in given Row and Column

```ts title="TypeScript"
getRawValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNode | `IRowNode` | Row to use |
| columnId | `string` | ColumnId to lookup |

###### Returns

 Raw Value for Cell in given Row and Column. `undefined` when there is no match

`any | undefined`

### getRowCount

Number of data rows, excluding group rows.

```ts title="TypeScript"
getRowCount(): number;
```

###### Returns

 Number of data rows, excluding group rows

`number`

### getRowNodeForIndex

Retrieves the displayed RowNode at the given index

```ts title="TypeScript"
getRowNodeForIndex(rowIndex: number): IRowNode | undefined;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowIndex | `number` | row index |

###### Returns

 The displayed RowNode at the given index. `undefined` when there is no match

`IRowNode | undefined`

### getRowNodeForPrimaryKey

Retrieves Row Node that contains given Primary Key

```ts title="TypeScript"
getRowNodeForPrimaryKey(primaryKeyValue: any): IRowNode;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKeyValue | `any` | Primary Key Value to look up |

###### Returns

 Row Node that contains given Primary Key

`IRowNode`

### getRowNodesForPrimaryKeys

Retrieves Row Nodes that contain given Primary Keys

```ts title="TypeScript"
getRowNodesForPrimaryKeys(primaryKeyValues: any[]): IRowNode[];
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKeyValues | `any[]` | Primary Key Values to look up |

###### Returns

 Row Nodes that contain given Primary Keys

`IRowNode[]`

### getSelectedCellInfo

Returns all current Selected Cells in AdapTable

```ts title="TypeScript"
getSelectedCellInfo(): SelectedCellInfo;
```

###### Returns

 All current Selected Cells in AdapTable

[`SelectedCellInfo`](https://www.adaptabletools.com/docs/reference/selectedcellinfo.md)

### getSelectedRowInfo

Returns all current Selected Rows in AdapTable

```ts title="TypeScript"
getSelectedRowInfo(): SelectedRowInfo;
```

###### Returns

 All current Selected Rows in AdapTable

[`SelectedRowInfo`](https://www.adaptabletools.com/docs/reference/selectedrowinfo.md)

### getVariant

Returns current AdapTable Variant: vanilla, angular, react, vue

```ts title="TypeScript"
getVariant(): AdaptableVariant;
```

###### Returns

 Current AdapTable Variant: vanilla, angular, react, vue

`AdaptableVariant`

### getVisibleColumnCount

Number of columns that are currently visible.

```ts title="TypeScript"
getVisibleColumnCount(): number;
```

###### Returns

 Number of columns that are currently visible

`number`

### getVisibleColumnData

Retrieves the visible (filtered and sorted) values for a single Column.

```ts title="TypeScript"
getVisibleColumnData(columnId: string): any[];
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnId | `string` | the Column to read the values from |

###### Returns

 The visible (filtered and sorted) values for a single Column

`any[]`

### getVisibleData

Retrieves visible data from the grid (filtered and sorted from visible columns only)

```ts title="TypeScript"
getVisibleData(): any[];
```

###### Returns

 Visible data from the grid (filtered and sorted from visible columns only)

`any[]`

### getVisibleRowCount

Number of rows currently displayed, after filtering.

```ts title="TypeScript"
getVisibleRowCount(): number;
```

###### Returns

 Number of rows currently displayed, after filtering

`number`

### getVisibleRowNodes

Retrieves all filtered Row Nodes currently in the Grid (i.e. after applying the current filter)

```ts title="TypeScript"
getVisibleRowNodes(config?: {
        includeGroupRows?: boolean;
        filterFn?(rowNode: IRowNode): boolean;
    }): IRowNode[];
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| config | `\{ includeGroupRows?: boolean; filterFn?(rowNode: IRowNode): boolean; \}` | configuration |

###### Returns

 All filtered Row Nodes currently in the Grid (i.e. after applying the current filter)

`IRowNode[]`

### highlightCell

Highlights a Cell in AdapTable

```ts title="TypeScript"
highlightCell(cellHighlightInfo: CellHighlightInfo): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| cellHighlightInfo | [`CellHighlightInfo`](https://www.adaptabletools.com/docs/reference/cellhighlightinfo.md) | cell to highlight |

###### Returns

`void`

### highlightColumn

Highlights a Column in AdapTable

```ts title="TypeScript"
highlightColumn(columnHighlightInfo: ColumnHighlightInfo): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnHighlightInfo | `ColumnHighlightInfo` | column to highlight |

###### Returns

`void`

### highlightRow

Highlight a row using an adaptable style

```ts title="TypeScript"
highlightRow(rowHighlightInfo: RowHighlightInfo): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowHighlightInfo | [`RowHighlightInfo`](https://www.adaptabletools.com/docs/reference/rowhighlightinfo.md) | highlight instructions |

###### Returns

`void`

### highlightRows

Highlight rows using an adaptable style

```ts title="TypeScript"
highlightRows(rowsHighlightInfo: RowsHighlightInfo): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowsHighlightInfo | [`RowsHighlightInfo`](https://www.adaptabletools.com/docs/reference/rowshighlightinfo.md) | Rows to highlight and the style to apply |

###### Returns

`void`

### isCellEditable

Checks if given Grid Cell is editable

```ts title="TypeScript"
isCellEditable(gridCell: GridCell): boolean;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| gridCell | [`GridCell`](https://www.adaptabletools.com/docs/reference/gridcell.md) | Cell to check |

###### Returns

 `true` when given Grid Cell is editable

`boolean`

### isCellEdited

Checks if given Grid Cell has been edited (uses Data Change History)

```ts title="TypeScript"
isCellEdited(gridCell: GridCell): boolean;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| gridCell | [`GridCell`](https://www.adaptabletools.com/docs/reference/gridcell.md) | Cell to check |

###### Returns

 `true` when given Grid Cell has been edited (uses Data Change History)

`boolean`

### isEveryCellEditable

Checks if all of given Grid Cells are editable

```ts title="TypeScript"
isEveryCellEditable(gridCells: GridCell[]): boolean;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| gridCells | [`GridCell`](https://www.adaptabletools.com/docs/reference/gridcell.md)`[]` | cells to check |

###### Returns

 `true` when all of given Grid Cells are editable

`boolean`

### isGrandTotalRowNode

Whether given Row Node is a Grand Total Row

```ts title="TypeScript"
isGrandTotalRowNode(rowNode: IRowNode): boolean;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNode | `IRowNode` | Node to check |

###### Returns

 `true` when given Row Node is a Grand Total Row

`boolean`

### isGridGroupable

Whether AdapTable instance can be Row Grouped

```ts title="TypeScript"
isGridGroupable(): boolean;
```

###### Returns

 `true` when AdapTable instance can be Row Grouped

`boolean`

### isGridInPivotMode

Whether Grid is currently in Pivot Mode

```ts title="TypeScript"
isGridInPivotMode(): boolean;
```

###### Returns

 `true` when Grid is currently in Pivot Mode

`boolean`

### isGridPivotable

Whether AdapTable instance can be pivoted

```ts title="TypeScript"
isGridPivotable(): boolean;
```

###### Returns

 `true` when AdapTable instance can be pivoted

`boolean`

### isGridRangeSelectable

Whether AdapTable instance offers cell range selection

```ts title="TypeScript"
isGridRangeSelectable(): boolean;
```

###### Returns

 `true` when AdapTable instance offers cell range selection

`boolean`

### isGridRowGrouped

Whether Grid is currently showing Row Groups

```ts title="TypeScript"
isGridRowGrouped(): boolean;
```

###### Returns

 `true` when Grid is currently showing Row Groups

`boolean`

### isGridRowSelectable

Whether AdapTable instance offers row selection

```ts title="TypeScript"
isGridRowSelectable(): boolean;
```

###### Returns

 `true` when AdapTable instance offers row selection

`boolean`

### isGridRowSelected

Whether a Row is selected

```ts title="TypeScript"
isGridRowSelected(primaryKeyValue: any): boolean;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKeyValue | `any` | pkVaue of Row to check |

###### Returns

 `true` when a Row is selected

`boolean`

### isGroupRowNode

Whether given Row Node is a Row Group

```ts title="TypeScript"
isGroupRowNode(rowNode: IRowNode): boolean;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNode | `IRowNode` | Node to check |

###### Returns

 `true` when given Row Node is a Row Group

`boolean`

### isMasterDetailGrid

Whether Grid is a Master Detail Grid

```ts title="TypeScript"
isMasterDetailGrid(): boolean;
```

###### Returns

 `true` when Grid is a Master Detail Grid

`boolean`

### isQuickFilterAvailable

Whether Quick Filter is available in the Grid

```ts title="TypeScript"
isQuickFilterAvailable(): boolean;
```

###### Returns

 `true` when Quick Filter is available in the Grid

`boolean`

### isSummaryNode

Whether given Row Node is in a Summary Row

```ts title="TypeScript"
isSummaryNode(rowNode: IRowNode): boolean;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNode | `IRowNode` | Node to check |

###### Returns

 `true` when given Row Node is in a Summary Row

`boolean`

### isTreeDataGrid

Whether Grid displays a Tree Data (structured hierarchical data)

```ts title="TypeScript"
isTreeDataGrid(): boolean;
```

###### Returns

 `true` when Grid displays a Tree Data (structured hierarchical data)

`boolean`

### isVisibleRowNode

Whether given Row Node is visible

```ts title="TypeScript"
isVisibleRowNode(rowNode: IRowNode): boolean;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNode | `IRowNode` | Node to check |

###### Returns

 `true` when given Row Node is visible

`boolean`

### jumpToCell

Grid will jump to cell in a given Row and Column

```ts title="TypeScript"
jumpToCell(primaryKeyValue: any, columnId: string, rowNode?: IRowNode): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKeyValue | `any` | value in Primary Key Column |
| columnId | `string` | Id of Column |
| rowNode | `IRowNode` | AG Grid RowNode |

###### Returns

`void`

### jumpToColumn

Grid will jump to Column that has given ColumnId

```ts title="TypeScript"
jumpToColumn(columnId: string): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnId | `string` | Id of Column to jump to |

###### Returns

`void`

### jumpToRow

Grid will jump to Row containing given Primary Key Value

```ts title="TypeScript"
jumpToRow(primaryKeyValue: any): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKeyValue | `any` | value in Primary Key Column |

###### Returns

`void`

### loadGridData

Loads data into grid and fire a `RowChanged.trigger='Load'` event

```ts title="TypeScript"
loadGridData(data: any): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| data | `any` | data to load |

###### Returns

`void`

### manageGridData

Adds, Updates or Deletes rows in AdapTable (and AG Grid) in single transaction

Updated rows are reported as in `updateGridData`.

```ts title="TypeScript"
manageGridData(dataRowConfig: DataRowConfig, dataUpdateConfig?: DataUpdateConfig): Promise<{
        addedRows: IRowNode[];
        updatedRows: IRowNode[];
        removedRows: IRowNode[];
    }>;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| dataRowConfig | [`DataRowConfig`](https://www.adaptabletools.com/docs/reference/datarowconfig.md) | Rows to add, update or remove; an updated row must be a new object, not the row&#39;s current data changed in place |
| dataUpdateConfig | [`DataUpdateConfig`](https://www.adaptabletools.com/docs/reference/dataupdateconfig.md) | batch option and callback function to run post transaction |

###### Returns

 The row nodes that were added, updated and removed

`Promise<\{ addedRows: IRowNode[]; updatedRows: IRowNode[]; removedRows: IRowNode[]; \}>`

### openGridInfoSettingsPanel

Opens Settings Panel with Grid Info section selected and visible

```ts title="TypeScript"
openGridInfoSettingsPanel(): void;
```

###### Returns

`void`

### redrawGrid

Redraws AdapTable (expensive operation so use sparingly)

```ts title="TypeScript"
redrawGrid(): void;
```

###### Returns

`void`

### refreshAllCells

Refreshes all Cells in the Grid

```ts title="TypeScript"
refreshAllCells(forceUpdate?: boolean): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| forceUpdate | `boolean` | forces AG Grid change detection |

###### Returns

`void`

### refreshCell

Refresh a Cell Value in AdapTable

```ts title="TypeScript"
refreshCell(rowNode: IRowNode, columnId: string, suppressFlash?: boolean): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNode | `IRowNode` | AG Grid RowNode which contains cell to refresh |
| columnId | `string` | ColumnId which contains cell to refresh |
| suppressFlash | `boolean` | When `true`, the cell refreshes without flashing |

###### Returns

`void`

### refreshCells

Refresh Cell Values in AdapTable

```ts title="TypeScript"
refreshCells(rowNode: IRowNode, columnIds: string[], suppressFlash?: boolean): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNode | `IRowNode` | agGrid RowNode which contains cells to refresh |
| columnIds | `string[]` | ColumnIds which contain cells to refresh |
| suppressFlash | `boolean` | When `true`, the cells refresh without flashing |

###### Returns

`void`

### refreshColumn

Refresh Column Values in AdapTable

```ts title="TypeScript"
refreshColumn(columnId: string): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnId | `string` | the ID of the Column to refresh |

###### Returns

`void`

### refreshColumns

Refresh Columns Values in AdapTable

```ts title="TypeScript"
refreshColumns(columnIds: string[]): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnIds | `string[]` | the IDs of the Columns to refresh |

###### Returns

`void`

### refreshGridCell

Refreshes a single Grid Cell

```ts title="TypeScript"
refreshGridCell(gridCell: GridCell): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| gridCell | [`GridCell`](https://www.adaptabletools.com/docs/reference/gridcell.md) | GridCell to refresh |

###### Returns

`void`

### refreshGridCells

Refreshes a set of Grid Cells

```ts title="TypeScript"
refreshGridCells(gridCells: GridCell[]): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| gridCells | [`GridCell`](https://www.adaptabletools.com/docs/reference/gridcell.md)`[]` | GridCells to refresh |

###### Returns

`void`

### refreshGridHeader

Forces a re-render of the Grid Header

```ts title="TypeScript"
refreshGridHeader(): void;
```

###### Returns

`void`

### refreshGroupRowNodes

Forces a re-render of all Group Rows (including aggregations)

```ts title="TypeScript"
refreshGroupRowNodes(): void;
```

###### Returns

`void`

### refreshRowByPrimaryKey

Forces a re-render of Row with given Primary Key value

```ts title="TypeScript"
refreshRowByPrimaryKey(primaryKey: any): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKey | `any` | row primary key |

###### Returns

`void`

### refreshRowNode

Forces a re-render of the given row

```ts title="TypeScript"
refreshRowNode(rowNode: IRowNode): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNode | `IRowNode` | AG Grid Row |

###### Returns

`void`

### refreshRowNodes

Forces re-render of given rows (if none provided, all rows are refreshed)

```ts title="TypeScript"
refreshRowNodes(rowNodes?: IRowNode[]): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNodes | `IRowNode[]` | AG Grid rows |

###### Returns

`void`

### removeAgGridColumnDefinition

Removes the Column Definition for a given Column.

```ts title="TypeScript"
removeAgGridColumnDefinition(columnId: string): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnId | `string` | the ColumnId to remove |

###### Returns

`void`

### selectAll

Select the whole Grid

```ts title="TypeScript"
selectAll(): void;
```

###### Returns

`void`

### selectCellRange

Selects a group of cells in a given range - provide either primary keys or row indexes

```ts title="TypeScript"
selectCellRange(gridCellRange: GridCellRange, clearSelection?: boolean): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| gridCellRange | [`GridCellRange`](https://www.adaptabletools.com/docs/reference/gridcellrange.md) | Range to select |
| clearSelection | `boolean` | Whether to clear current selection in grid |

###### Returns

`void`

### selectCellRangeByQuery

Selects a group of cells in a given range using a query

```ts title="TypeScript"
selectCellRangeByQuery(query: string, gridCellRange?: GridCellRange, clearSelection?: boolean): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| query | `string` | query to use to select cells |
| gridCellRange | [`GridCellRange`](https://www.adaptabletools.com/docs/reference/gridcellrange.md) | optional range to filter results |
| clearSelection | `boolean` | whether to clear current selection in grid |

###### Returns

`void`

### selectColumn

Selects a Column in AG Grid

```ts title="TypeScript"
selectColumn(columnId: string): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnId | `string` | Id of Column to Select |

###### Returns

`void`

### selectColumns

Selects Columns in AG Grid

```ts title="TypeScript"
selectColumns(columnIds: string[]): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnIds | `string[]` | Ids of Columns to Select |

###### Returns

`void`

### selectNode

Selects the AG Grid Row Node in AdapTable

```ts title="TypeScript"
selectNode(rowNode: IRowNode, clearSelection: boolean): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNode | `IRowNode` | Node to Select |
| clearSelection | `boolean` | Whether to clear current selection in grid |

###### Returns

`void`

### selectNodes

Selects the AG Grid Row Nodes in AdapTable

```ts title="TypeScript"
selectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| rowNodes | `IRowNode[]` | Nodes to Select |
| clearSelection | `boolean` | Whether to clear current selection in grid |

###### Returns

`void`

### selectRow

Selects Row with given Primary Key Value

```ts title="TypeScript"
selectRow(primaryKeyValue: any, clearSelection: boolean): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKeyValue | `any` | Primary Key Value of Row to select |
| clearSelection | `boolean` | Whether to clear current selection in grid |

###### Returns

`void`

### selectRows

Selects Rows with given Primary Key Values

```ts title="TypeScript"
selectRows(primaryKeyValues: any[], clearSelection: boolean): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKeyValues | `any[]` | Primary Key Values of Rows to select |
| clearSelection | `boolean` | Whether to clear current selection in grid |

###### Returns

`void`

### setAdaptableSorting

Sorts AdapTable using given Column Sorts

```ts title="TypeScript"
setAdaptableSorting(columnSorts: ColumnSort[]): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnSorts | [`ColumnSort`](https://www.adaptabletools.com/docs/reference/columnsort.md)`[]` | Column Sorts to use |

###### Returns

`void`

### setAgGridColumnDefinitions

Replaces the grid&#39;s column definitions.

```ts title="TypeScript"
setAgGridColumnDefinitions(columnDefinitions: (ColDef | ColGroupDef)[]): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnDefinitions | `(ColDef \| ColGroupDef)[]` | Column definitions to set |

###### Returns

`void`

### setCellValue

Updates cell in AdapTable (as an AG Grid edit)

```ts title="TypeScript"
setCellValue(cellUpdateRequest: CellUpdateRequest): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| cellUpdateRequest | [`CellUpdateRequest`](https://www.adaptabletools.com/docs/reference/cellupdaterequest.md) | (contains colId, newValue and primaryKeyValue and rowNode) |

###### Returns

`void`

### setCellValues

Updates multiple cells

Filters are re-applied once per call, not once per cell, and the Alerts the edits fire are
consolidated (see `AlertOptions.consolidateBatchAlerts`).

```ts title="TypeScript"
setCellValues(cellUpdateRequests: CellUpdateRequest[]): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| cellUpdateRequests | [`CellUpdateRequest`](https://www.adaptabletools.com/docs/reference/cellupdaterequest.md)`[]` | Cells to write, each with a column, row and new value |

###### Returns

`void`

### setRowGroupColumns

Sets the grid to Row Group

```ts title="TypeScript"
setRowGroupColumns(columnIds: string[]): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnIds | `string[]` | ColumnIds to row group |

###### Returns

`void`

### showTransposedView

Opens a window with a transposed view of the grid.

```ts title="TypeScript"
showTransposedView(transposeConfig?: TransposeConfig): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| transposeConfig | [`TransposeConfig`](https://www.adaptabletools.com/docs/reference/transposeconfig.md) | Which column, columns and rows to transpose. Omit it to transpose every column, using the primary key column |

###### Returns

`void`

### undoCellEdit

Reverses a data change (if triggered by cell edit)

```ts title="TypeScript"
undoCellEdit(cellDataChangedInfo: CellDataChangedInfo): boolean;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| cellDataChangedInfo | [`CellDataChangedInfo`](https://www.adaptabletools.com/docs/reference/celldatachangedinfo.md) | data change to undo |

###### Returns

 `true` once the previous cell value has been written back

`boolean`

### unHighlightAllCells

Unhighlights all highlighted Cells in AdapTable

```ts title="TypeScript"
unHighlightAllCells(): void;
```

###### Returns

`void`

### unHighlightAllColumns

Unhighlights all highlighted Columns in AdapTable

```ts title="TypeScript"
unHighlightAllColumns(): void;
```

###### Returns

`void`

### unHighlightAllRows

Remove all highlighted rows

```ts title="TypeScript"
unHighlightAllRows(): void;
```

###### Returns

`void`

### unHighlightCell

Unhighlights a Cell in AdapTable

```ts title="TypeScript"
unHighlightCell(primaryKeyValue: any, columnId: string): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKeyValue | `any` | pkvalue of cell to unhilight |
| columnId | `string` | column id of cell to unhilight |

###### Returns

`void`

### unHighlightColumn

Unhighlights a Column in AdapTable

```ts title="TypeScript"
unHighlightColumn(columnId: string): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnId | `string` | column to unhighlight |

###### Returns

`void`

### unHighlightRow

Remove highlight from Row

```ts title="TypeScript"
unHighlightRow(primaryKeyValue: RowHighlightInfo['primaryKeyValue']): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKeyValue | [`RowHighlightInfo`](https://www.adaptabletools.com/docs/reference/rowhighlightinfo.md)`['primaryKeyValue']` | value in Primary Key Column |

###### Returns

`void`

### unHighlightRows

Remove highlight from given Rows

```ts title="TypeScript"
unHighlightRows(primaryKeyValues: RowsHighlightInfo['primaryKeyValues']): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| primaryKeyValues | [`RowsHighlightInfo`](https://www.adaptabletools.com/docs/reference/rowshighlightinfo.md)`['primaryKeyValues']` | values in Primary Key Column |

###### Returns

`void`

### updateAgGridColumnDefinition

Merges non-stateful AG Grid column properties into an existing column definition. The column is matched by `colId`. A column that does not exist yet is added.

```ts title="TypeScript"
updateAgGridColumnDefinition(columnDefinition: ColDefWithId): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnDefinition | [`ColDefWithId`](https://www.adaptabletools.com/docs/reference/coldefwithid.md) | Column definition to merge. `colId` is required |

###### Returns

`void`

### updateAgGridColumnDefinitions

Merges non-stateful AG Grid column properties into the given column definitions. Each column is matched by `colId`.

```ts title="TypeScript"
updateAgGridColumnDefinitions(columnDefinitions: ColDefWithId[]): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnDefinitions | [`ColDefWithId`](https://www.adaptabletools.com/docs/reference/coldefwithid.md)`[]` | Column definitions to merge. Each `colId` is required |

###### Returns

`void`

### updateAgGridColumnState

Updates Ag Grid Column State for a given Column; use to update STATEFUL AG Grid Column props

```ts title="TypeScript"
updateAgGridColumnState(columnState: ColumnState): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnState | `ColumnState` | the AG Grid ColumnState to set |

###### Returns

`void`

### updateAgGridColumnStates

Updates Ag Grid Column State for given Columns; use to update STATEFUL AG Grid Column props

```ts title="TypeScript"
updateAgGridColumnStates(columnStates: ColumnState[]): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| columnStates | `ColumnState[]` | the AG Grid ColumnState to set |

###### Returns

`void`

### updateGridData

Updates AdapTable (and AG Grid) with rows that have changed

Each row is compared with the row it replaces, whether rendered or not, and every changed cell
fires a Cell Changed Event. Filters are re-applied once per call, not once per row.

```ts title="TypeScript"
updateGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| dataRows | `any[]` | rows which have been updated - send whole row, as a new object; changes made in place to a row&#39;s current data cannot be detected |
| config | [`DataUpdateConfig`](https://www.adaptabletools.com/docs/reference/dataupdateconfig.md) | batch option and callback function to run post update |

###### Returns

 The row nodes that were updated

`Promise<IRowNode[]>`
