DataGrid

WinForms. DataGrid

DataGrid

Constructor

new DataGrid()

A DataGridBehavior object,

Methods

back() → {Promise.<void>}

Navigates back to parent table.
Returns:
a promise that is fulfilled when the back operation ends.
Type
Promise.<void>

cells(rowIndex[opt], columnIndex[opt]) → {Promise.<(Array.<Array.<WinForms.TableCell>>|Array.<WinForms.TableCell>)>|WinForms.TableCell}

Returns either a promise for all the cells in the table (when called without arguments), or all the cells in a row (when called with row only), or for the specified cell.
Parameters:
NameTypeAttributesDescription
rowIndexnumber <optional>
The row index of the specific cell.
columnIndexnumber <optional>
The column index in the row, specified by the row parameter.
Returns:
either a promise for all the cells in the table (when called without arguments), or all the cells in a row (when called with row only), or for the specified cell.
Type
Promise.<(Array.<Array.<WinForms.TableCell>>|Array.<WinForms.TableCell>)> | WinForms.TableCell

collapseRow(row) → {Promise.<void>}

Collapses the specified row.
Parameters:
NameTypeDescription
rownumberThe 0-based row index.
Returns:
a promise that is fulfilled when the collapseRow operation ends.
Type
Promise.<void>

expandRow(row) → {Promise.<void>}

Expands the specified row.
Parameters:
NameTypeDescription
rownumberThe 0-based row index.
Returns:
a promise that is fulfilled when the expandRow operation ends.
Type
Promise.<void>

hideParentRow() → {Promise.<void>}

Hides the parent row when the child grid is displayed.
Returns:
a promise that is fulfilled when the hideParentRow operation ends.
Type
Promise.<void>

openCellRelation(row, column) → {Promise.<void>}

Expands the specified row.
Parameters:
NameTypeDescription
rownumberThe 0-based row index.
columnnumberThe 0-based column index.
Returns:
a promise that is fulfilled when the openCellRelation operation ends.
Type
Promise.<void>

showParentRow() → {Promise.<void>}

Displays the parent row when the child grid is displayed.
Returns:
a promise that is fulfilled when the showParentRow operation ends.
Type
Promise.<void>

tableTestObject() → {WinForms.Table}

Returns the Table test object this custom grid was accessed from.
Returns:
the tableTestObject.
Type
WinForms.Table