void PrepareGrid(DataGridView grid, Int32 rows, Int32 cols)
Prepares DataGrid or for viewing matrix or vector values.
| # | Name | Description |
|---|---|---|
| 1 | grid | Prepared datagrid |
| 2 | rows | number of rows in datagrid.DataSource. |
| 3 | cols | number of columns in datagrid.DataSource |
Result: stored in self (calling object)
Remarks:
You must call this routine prior to using any of the Dew.Math.GridServices.ValuesToGrid routine overloads.
Examples
using Dew.Math;
Matrix a = new Matrix(3,4,true);
a.RandGauss();
GridServices.PrepareGrid(dataGrid1,3,8);
GridServices.ValuesToGrid(a,dataGrid1,0,0);
See Also: GridServices.ValuesToGrid