Retrieving a value from a cell in a custom grid
From Seapine Labs
Many custom grids are identified in the repository as generic controls, making it impossible to reference individual cells as separate controls. You must use low-level commands and key presses to navigate the grid. Before you can navigate the grid, you must locate a cell and place the cursor in the cell. For example, the first cell of the grid is located at the coordinates X=128 and Y=111. Using those coordinates in the LeftMouseDown and LeftMouseUp statements, you can click the first cell of the grid and then use KeyPress statements to tab to the different cells.
In many cases, you can obtain this information from the repository entry for the grid using the Parent Relative Rectangle or Screen Relative Client Rectangle properties. If you cannot locate coordinates of a given cell, use an OCR checkpoint to retrieve them.
Note: The OCR add-in is sold separately.
The following examples show how to retrieve data from a custom grid and how to locate a specific cell.
 Retrieving the value from a cell in a custom grid
The following example uses the DataGridView application, which contains a two-column custom grid.