DXGridControl

DevXpress GridControl.

UI element class: DevExpress.XtraGrid.GridControl

Extends ManagedObject

Extends SeSSimulatedObject

Behavior Pattern: DXGridControlBehavior

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
DoClickColumn Clicks on column header
DoFullText Full text of the table (may be very long!).

Property Detail

Cell

Text of the specified cell.

Type: string

Accessors: GetCell

ColumnCount

Number of columns in the table.

Type: number

Accessors: GetColumnCount

ColumnName

Caption of a column.

Getter Parameters:

Name Type Description
columnIndex number Zero-based index of the column.
defSep string Separator for multi-level columns.
Optional.

Type: string

Accessors: GetColumnName

RowCount

Number of rows in the table.

Type: number

Accessors: GetRowCount

SelectedColumn

Index of the selected column.

Type: number

Accessors: GetSelectedColumn

SelectedRow

Index of the selected row.

Type: number

Accessors: GetSelectedRow

Text

Text of the currently focused cell.

Type: string

Accessors: GetText

Action Detail

DoClickCell(row, col, clickType, xOffset, yOffset)

Clicks the specified cell

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
Optional, Default: L.
xOffset number X offset to click within object. Default is a center.
Optional.
yOffset number Y offset to click within object. Default is a center.
Optional.

Returns:

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

DoClickColumn(col, clickType, xOffset, yOffset)

Clicks on column header

Parameters:

Name Type Description
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
Optional, Default: L.
xOffset number X offset to click within header. Default is a center.
Optional.
yOffset number Y offset to click within header. Default is a center.
Optional.

DoFullText()

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

Returns:

string: Table's full text