To learn more about using JavaScript in LeanFT, see Setting up and working with the JavaScript SDK.
For JavaScript code samples, see Code Samples - JavaScript.

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:
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>

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

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>

tableTestObject() → {WinForms.Table}

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