How to get specific row/cell data from grid

i have the following xml data, i want to get all the data of the row with id=“1a”,how to do it without selecting any rows/cells on the grid? thanks!





<?xml version="1.0" encoding="UTF-8"?>







    ID

    Code Type

    Code







    

        px

    

    





    

        232

        BLISTRAY

        BIT1





    



In common case, you can get cell data as

    grid.cells(id,index).getValue()

where id - row ID
           index - index of column

if you need to get all data from row

var data=[];
grid.forEachCell(id,function©{
    data.push(c.getValue());
});

where id - row ID