GridServices.PrepareGrid Method

void PrepareGrid(DataGridView grid, Int32 rows, Int32 cols)

Prepares DataGrid or for viewing matrix or vector values.

#NameDescription
1gridPrepared datagrid
2rowsnumber of rows in datagrid.DataSource.
3colsnumber 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