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.

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

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

Collapses the specified row.
Parameters:
Name Type Description
row Number The 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:
Name Type Description
row Number The 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:
Name Type Description
row Number The 0-based row index.
column Number The 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