Constructor
new DataGridView()
A DataGridViewBehavior object,
Methods
activateCell(row, columnHeader) → {Promise.<void>}
Double-clicks the specified cell in this grid.
Parameters:
Name | Type | Description |
---|---|---|
row |
number | The 0-based row index. |
columnHeader |
string | The 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:
Name | Type | Description |
---|---|---|
columnOrColumnHeader |
string | The 0-based column number or column caption. |
Returns:
a promise that is fulfilled when the activateColumn operation ends.
- Type
- Promise.<void>
cells(rowIndexopt, columnIndexopt) → {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:
Name | Type | Attributes | Description |
---|---|---|---|
rowIndex |
number |
<optional> |
The row index of the specific cell. |
columnIndex |
number |
<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:
Name | Type | Description |
---|---|---|
row |
number | 0-based row number. |
columnOrColumnHeader |
string | number | 0-based column index or column caption. |
Returns:
the TableCell.
- Type
- WinForms.TableCell
makeCellVisible(row, columnHeader) → {Promise.<void>}
Scrolls the specified cell into view.
Parameters:
Name | Type | Description |
---|---|---|
row |
number | The 0-based row index. |
columnHeader |
string | The 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:
Name | Type | Description |
---|---|---|
row |
number | The 0-based row index. |
columnHeader |
string | The 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:
Name | Type | Description |
---|---|---|
columnOrColumnHeader |
string | The 0-based column index 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