Reading data from grid using VBScript

hello,

i am trying to read data("SO Line"  line level data for a sales order) from the grid to a vbscript

but i am only able to access data of selected line .....

can any one help me out in how i can read the data from the gird( read all lines )

thanks