DataGridView

WinForms. DataGridView

DataGridView

Constructor

new DataGridView()

A DataGridViewBehavior object,

Methods

activateCell(row, columnHeader) → {Promise.<void>}

Double-clicks the specified cell in this grid.
Parameters:
NameTypeDescription
rownumberThe 0-based row index.
columnHeaderstringThe column caption.
Returns:
a promise that is fulfilled when the activateCell operation ends.
Type
Promise.<void>

activateColumn(columnOrColumnHeader) → {Promise.<void>}

Double-clicks the specified column header in this grid.
Parameters:
NameTypeDescription
columnOrColumnHeaderstringThe 0-based column number or column caption.
Returns:
a promise that is fulfilled when the activateColumn 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

getCell(row, columnOrColumnHeader) → {WinForms.TableCell}

Returns the specified cell.
Parameters:
NameTypeDescription
rownumber0-based row number.
columnOrColumnHeaderstring | number0-based column index or column caption.
Returns:
the TableCell.
Type
WinForms.TableCell

makeCellVisible(row, columnHeader) → {Promise.<void>}

Scrolls the specified cell into view.
Parameters:
NameTypeDescription
rownumberThe 0-based row index.
columnHeaderstringThe column caption.
Returns:
a promise that is fulfilled when the makeCellVisible operation ends.
Type
Promise.<void>

selectCell(row, columnHeader) → {Promise.<void>}

Selects the specified cell in this grid.
Parameters:
NameTypeDescription
rownumberThe 0-based row index.
columnHeaderstringThe column caption.
Returns:
a promise that is fulfilled when the selectCell operation ends.
Type
Promise.<void>

selectColumn(columnOrColumnHeader) → {Promise.<void>}

Selects column by column index or column caption.
Parameters:
NameTypeDescription
columnOrColumnHeaderstringThe 0-based column number or column caption.
Returns:
a promise that is fulfilled when the selectColumn 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