ClickCell Method (DataGrid)

Class

DataGrid.

Action

Makes a cell visible, and then clicks it.

Syntax

Datagrid.ClickCell (DataGridCell [,iButton, iXpos, iYpos, iCount])
Variable Description
DataGridCell The DataGridCell to click in. DATAGRIDCELL.
iButton Optional: The mouse button to press (default is 1): Windows: 1 for left , 2 for right, and 3 for center. INTEGER.
iXpos Optional: The horizontal coordinate at which to click. If you specify iXpos, you must also specify iYpos. The default is the center of the cell. INTEGER.
iYpos Optional: The vertical coordinate at which to click. If you specify iYpos, you must also specify iXpos. The default is the center of the cell. INTEGER.
iCount Optional: The number of times to click the mouse. The default is 1. INTEGER.

Notes

If you click a cell that is already active in an edit field of a DataGrid, Silk Test Classic does not always record a ClickCell(). This is because your application may have some cells that are active by default. If you are not recording a ClickCell, try clicking the title bar or another part of the DataGrid and then click the cell.