CGridView:FromTable
The FromTable method copies the contents of a 2-dimensional table to the grid. Each index of the table contains a row of data which is itself a table of data to save in the columns.
CGridView:FromTable( table )
table is a 2-dimensional table containing the cell values, organized in row order.
The following script returns the entire grid contents as a 1-dimensional array with values that are numbers.:
|
-- create CGridView with default properties |
|
-- create a 1-dimensional array with values that are numbers. |
|
-- create a 1-dimensional array with values that are numbers. of 3 columns for row 1 |
|
-- create a 1-dimensional array with values that are numbers. of 3 columns for row 2 |
|
-- create a 1-dimensional array with values that are numbers. of 3 columns for row 3 |
|
-- Set the grid to the contents of the table |
CGridView class, ToTable, SetRect
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.