To select ALL rows, we use:
$scope.GridOptions.api.selectAll()
Here $scope.GridOptions are your own grid data
And to deselect all rows, we use:
$scope.gridOptions.api.deselectAll();
Here (.api) is the file, and you get this file from the (ag-grid.js) file from the Internet Url: https://cdnjs.com/libraries/ag-grid
source share