Skip to content

C1TrueDBGrid

Component One True DB Grid Control

Extends ActiveXObject

Extends SeSSimulatedObject

Behavior Pattern: C1TrueDBGridBehavior

Property Summary

Property Description Getter Setter
Cell Text of the specified cell. GetCell
ColumnCount Number of columns in the table. GetColumnCount
ColumnName Caption of a column. GetColumnName
RowCount Number of rows in the table. GetRowCount
SelectedColumn Index of the selected column. GetSelectedColumn
SelectedRow Index of the selected row. GetSelectedRow
Text Text of the currently focused cell. GetText

Action Summary

Action Description
DoClickCell Clicks the specified cell
DoClickText Clicks on a specific text inside the grid.
DoFullText Full text of the table (may be very long!).

Property Detail

Cell

Text of the specified cell.

Type: string

Accessors: GetCell

value = SeS('SomeC1TrueDBGrid').GetCell(/**Number*/row, /**Number*/col)

ColumnCount

Number of columns in the table.

Type: number

Accessors: GetColumnCount

value = SeS('SomeC1TrueDBGrid').GetColumnCount()

ColumnName

Caption of a column.

Getter Parameters:

Name Type Description
col number Zero-based index of the column.

Type: string

Accessors: GetColumnName

value = SeS('SomeC1TrueDBGrid').GetColumnName(/**number*/ col)

RowCount

Number of rows in the table.

Type: number

Accessors: GetRowCount

value = SeS('SomeC1TrueDBGrid').GetRowCount()

SelectedColumn

Index of the selected column.

Type: number

Accessors: GetSelectedColumn

value = SeS('SomeC1TrueDBGrid').GetSelectedColumn()

SelectedRow

Index of the selected row.

Type: number

Accessors: GetSelectedRow

value = SeS('SomeC1TrueDBGrid').GetSelectedRow()

Text

Text of the currently focused cell.

Type: string

Accessors: GetText

value = SeS('SomeC1TrueDBGrid').GetText()

Action Detail

DoClickCell

Clicks the specified cell

SeS('SomeC1TrueDBGrid').DoClickCell(row, col, clickType, xOffset, yOffset)

Parameters:

Name Type Description
row number Zero-based index if the row.
col number Zero-based index of the column.
clickType string Type of click, can be one of "L" - left click, "LD" - double left click, "R" - right click, "RD" - double right click, "M" - middle click, "MD" - double middle click, "N" - don't click Possible values: "L", "LD", "R", "RD", "M", "MD", "N"
Optional, Default: "L".
xOffset number X offset to click within object. Calculated from the top-left corner. Default is a center. Floating point in the range (-2, 2) means percentage of the width.
Optional.
yOffset number Y offset to click within object. Calculated from the top-left corner. Default is a center. Floating point in the range (-2, 2) means percentage of the height.
Optional.

Returns:

boolean: 'true' if successful, 'false' otherwise

DoClickText

Clicks on a specific text inside the grid.

SeS('SomeC1TrueDBGrid').DoClickText(textOrRegexp, clickType)

Parameters:

Name Type Description
textOrRegexp string Text (or regex: expression) to search in the grid.
clickType string Type of click, can be one of "L" - left click, "LD" - double left click, "R" - right click, "RD" - double right click, "M" - middle click, "MD" - double middle click, "N" - don't click Possible values: "L", "LD", "R", "RD", "M", "MD", "N"
Optional, Default: "L".

Returns:

'true' if successful, 'false' otherwise

DoFullText

Full text of the table (may be very long!).

SeS('SomeC1TrueDBGrid').DoFullText()

Returns:

string: Table's full text