Table of Contents

Interface IXtraGrid

Namespace
HP.LFT.SDK.WinForms
Assembly
HP.LFT.SDK.dll

A DevExpress XtraGrid object.

public interface IXtraGrid : ICustomGrid
Inherited Members

Properties

ColumnCount

Returns the number of columns in the current view.

int ColumnCount { get; }

Property Value

int

RowCount

Returns the number of rows in the current view.

int RowCount { get; }

Property Value

int

Methods

ActivateCell(int, string)

Double-clicks the specified cell in this grid.

void ActivateCell(int row, string columnHeader)

Parameters

row int

0-based row number.

columnHeader string

The column caption.

ActivateColumn(int)

Double-clicks the specified column header in this grid.

void ActivateColumn(int column)

Parameters

column int

0-based column index.

ActivateColumn(string)

Double-clicks the specified column header in this grid.

void ActivateColumn(string columnHeader)

Parameters

columnHeader string

The column caption.

GetCell(int, int)

Returns a cell in the grid.

ITableCell GetCell(int row, int column)

Parameters

row int

0-based row number.

column int

0-based column index.

Returns

ITableCell

GetCell(int, string)

Returns a cell in the grid.

ITableCell GetCell(int row, string columnHeader)

Parameters

row int

0-based row number.

columnHeader string

The column caption.

Returns

ITableCell

GroupRows(int)

Groups table rows according to the specified column.

void GroupRows(int column)

Parameters

column int

0-based column index.

GroupRows(string)

Groups table rows according to the specified column.

void GroupRows(string columnHeader)

Parameters

columnHeader string

The column caption.

MakeCellVisible(int, string)

Scrolls the specified cell into view.

void MakeCellVisible(int row, string columnHeader)

Parameters

row int

0-based row number.

columnHeader string

The column caption.

SelectCell(int, string)

Selects the specified cell in this grid.

void SelectCell(int row, string columnHeader)

Parameters

row int

0-based row number.

columnHeader string

The column caption.

SelectColumn(int)

Clicks the specified column header in this grid.

void SelectColumn(int column)

Parameters

column int

0-based column index.

SelectColumn(string)

Clicks the specified column header in this grid.

void SelectColumn(string columnHeader)

Parameters

columnHeader string

The column caption.

SetFilter(int, string)

Applies the specified filter string to the specified column.

void SetFilter(int column, string filter)

Parameters

column int

0-based column index.

filter string

A value in the column to be used as the filter.

SetFilter(string, string)

Applies the specified filter string to the specified column.

void SetFilter(string columnHeader, string filter)

Parameters

columnHeader string

The column caption.

filter string

A value in the column to be used as the filter.

SetView(params Tuple<int, string>[])

Expands the parent rows of the specified view and makes it the current view.

void SetView(params Tuple<int, string>[] viewPath)

Parameters

viewPath Tuple<int, string>[]

The hierarchical path of the view you want to display expressed using Tuples in the format: (0-based row number, relation name)

Remarks

A SetView statement without parameters must be used before the first operation on an XtraGrid table. If your test contains steps on more than one XtraGrid table, ensure that you add a SetView without parameters statement before the first step on each grid.

Sort(int)

Sorts this table by the specified column, ascending.

void Sort(int column)

Parameters

column int

0-based column index.

Sort(string)

Sorts this table by the specified column, ascending.

void Sort(string columnHeader)

Parameters

columnHeader string

The column caption.

SortDescending(int)

Sorts this table by the specified column, descending.

void SortDescending(int column)

Parameters

column int

0-based column index.

SortDescending(string)

Sorts this table by the specified column, descending.

void SortDescending(string columnHeader)

Parameters

columnHeader string

The column caption.

UngroupRows(int)

Ungroups table rows according to the specified column.

void UngroupRows(int column)

Parameters

column int

0-based column index.

UngroupRows(string)

Ungroups table rows according to the specified column.

void UngroupRows(string columnHeader)

Parameters

columnHeader string

The column caption.