Deselect selected rows from ag grid angular

Riya picture Riya · Sep 6, 2018 · Viewed 10.5k times · Source

Is there any grid api to deselect ag-grid selected rows programatically? I'm trying to perform some operation on the selected row, basically an async operation , after which I need to deselect this row from the grid .

Answer

Riya picture Riya · Sep 6, 2018

Used grip api deselectAll function . It worked !

this.gridOptions.api.deselectAll();