I have modified the code posted on that question and modified code is listed in the List 1. Here you can see that element is search by id and I have provided name of the grid which is accountContactsGrid grid. The getRecordsFromInnerGrid function of the gridControl return the number of rows in the grid. The reason of getting the each row fourth column is shown below in the Image 1 as you can see that the fourth column has the detail of the cell in the row.
In the inner loop I loop through each cell of the row and display outerText, the first two cell has empty string in the outerText as one is the checkBox cell and second one is the image cell. The name of the grid which I am using is taken from the dialog which is shown below in Image 2.
All and any comments / bugs / suggestions are welcomed !