dhtmlxgrid Filter

When the grid is filtered using the API how is it possible to determine if a particular row is visible or hidden??

grid.getRowIndex(id)
will return -1 for hidden rows