Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void ValuesToGrid(TMtx src, DataGridView grid, Int32 gridrow, Int32 gridcol) | Copy Matrix values to DataGrid. |
| 2 | void ValuesToGrid(TMtx src, DataGridView grid, Int32 gridrow, Int32 gridcol, Int32 srcrow, Int32 srccol, Int32 rowcount, Int32 colcount, String format, Boolean headers) | Copy values subarray to datagrid subarray. |
| 3 | void ValuesToGrid(TMtx src, DataGridView grid, Int32 gridrow, Int32 gridcol, String format, Boolean headers) | Copy matrix values to DataGrid. |
| 4 | void ValuesToGrid(TVec src, DataGridView grid, Int32 gridrow, Int32 gridcol) | Copies an array of vector values to DataGrid. |
| 5 | void ValuesToGrid(TVec src, DataGridView grid, Int32 gridrow, Int32 gridcol, Int32 index, Int32 len, String format, Boolean headers, Boolean vertical) | Copy Vector values subarray to DataGrid. |
| 6 | void ValuesToGrid(TVec src, DataGridView grid, Int32 gridrow, Int32 gridcol, String format, Boolean headers, Boolean vertical) | Copy Vector values to DataGrid. |
Overload 1: void ValuesToGrid(TMtx src, DataGridView grid, Int32 gridrow, Int32 gridcol)
Copy Matrix values to DataGrid.
| # | Name | Description |
|---|---|---|
| 1 | src | Source Matrix. |
| 2 | grid | Destination DataGrid. |
| 3 | gridrow | DataGrid start row index. |
| 4 | gridcol | DataGrid start column index. |
Result: stored in self (calling object)
Overload 2: void ValuesToGrid(TMtx src, DataGridView grid, Int32 gridrow, Int32 gridcol, Int32 srcrow, Int32 srccol, Int32 rowcount, Int32 colcount, String format, Boolean headers)
Copy values subarray to datagrid subarray.
| # | Name | Description |
|---|---|---|
| 1 | src | Source matrix. |
| 2 | grid | Destination datagrid. |
| 3 | gridrow | First populated row index. |
| 4 | gridcol | First populated column index. |
| 5 | srcrow | First matrix row to be copied. |
| 6 | srccol | First matrix column to be copied. |
| 7 | rowcount | Number of rows to be copied. |
| 8 | colcount | Number of columns to be copied. |
| 9 | format | Format for double to string conversion. |
| 10 | headers | If true, first datagrid row and column are index numbered. |
Result: stored in self (calling object)
Copies (rowcount*colcount) matrix elements starting at [srcrow, srccol] of the src matrix using formatting format to datagrid cells[gridrow,gridcol] to [gridrow+rowcount,gridcol+colcount].
Overload 3: void ValuesToGrid(TMtx src, DataGridView grid, Int32 gridrow, Int32 gridcol, String format, Boolean headers)
Copy matrix values to DataGrid.
| # | Name | Description |
|---|---|---|
| 1 | src | Source Matrix. |
| 2 | grid | Destinatiob DataGrid. |
| 3 | gridrow | DataGrid start row index. |
| 4 | gridcol | DataGrid start column index. |
| 5 | format | Default cell string format. |
| 6 | headers | If true, generate row and column headers. |
Result: stored in self (calling object)
Overload 4: void ValuesToGrid(TVec src, DataGridView grid, Int32 gridrow, Int32 gridcol)
Copies an array of vector values to DataGrid.
| # | Name | Description |
|---|---|---|
| 1 | src | Source vector. |
| 2 | grid | Destination grid. |
| 3 | gridrow | Starting row index. |
| 4 | gridcol | Starting column index. |
Result: stored in self (calling object)
using Dew.Math;
Vector v = new Vector(50,true);
v.RandGauss();
GridServices.PrepareGrid(dataGrid1,v.Length,2);
GridServices.ValuesToGrid(v,dataGrid1,1,0);
Overload 5: void ValuesToGrid(TVec src, DataGridView grid, Int32 gridrow, Int32 gridcol, Int32 index, Int32 len, String format, Boolean headers, Boolean vertical)
Copy Vector values subarray to DataGrid.
| # | Name | Description |
|---|---|---|
| 1 | src | Source vector. |
| 2 | grid | Destination grid. |
| 3 | gridrow | DataGrid start row index. |
| 4 | gridcol | DataGrid start column index. |
| 5 | index | Vector start index. |
| 6 | len | The size of elements to-be-copied. |
| 7 | format | Default cell string format. |
| 8 | headers | If true, include headers. |
| 9 | vertical | If true, vector represented as single column object, if false, vector is represented as single row object. |
Result: stored in self (calling object)
Copies [index] to [index+len] Vector elements to DataGrid [gridrow,gridcol] to [gridrow+len,gridcol] or [gridrow,gridcol] to [gridrow,gridcol+len].
Overload 6: void ValuesToGrid(TVec src, DataGridView grid, Int32 gridrow, Int32 gridcol, String format, Boolean headers, Boolean vertical)
Copy Vector values to DataGrid.
| # | Name | Description |
|---|---|---|
| 1 | src | Source vector. |
| 2 | grid | Destination grid. |
| 3 | gridrow | Starting row index. |
| 4 | gridcol | Starting column index. |
| 5 | format | Default string format for cells. |
| 6 | headers | Include headers. |
| 7 | vertical | Represent vector as row or column object. If true, each element is stored in different row, if false, each element is stored in different column. |
Result: stored in self (calling object)