You are here: Symbol Reference > Dew.Math Namespace > GridServices Class > GridServices Methods > GridToValues Method > GridToValues Method (DataGrid, TMtx, int, int, int, int, int, int, bool)
Dew Math for .NET
Contents
PreviousUpNext
GridServices.GridToValues Method (DataGrid, TMtx, int, int, int, int, int, int, bool)

Copy grid subarray to matrix.

C#
public static TMtx GridToValues(DataGrid grid, TMtx dst, int gridrow, int gridcol, int Row, int Col, int RowCount, int ColCount, bool iscomplex);
Parameters
Parameters 
Description 
grid 
Source grid. 
dst 
Destination matrix. 
gridrow 
Subarray starting row index. 
gridcol 
Subarray starting column index. 
Row 
Destination matrix starting row index. 
Col 
Destination matrix starting column index. 
RowCount 
Number of rows to copy from grid. 
ColCount 
Number of columns to copy from grid. 
iscomplex 
If true, two consecutive columns in grid will be treated as single complex number. If false, cells will be treated as real separate values. 
Returns

Destination matrix with values from grid.

Copies datagrid elements, starting with [gridrow,gridcol] and ending with [gridrow + RowCount,gridcol + ColCount] to destination matrix submatrix, starting at [Row,Col] and ending with [Row+RowCount,Col+ColCount].

What do you think about this topic? Send feedback!
Copyright (c) 1999-2010 by Dew Research. All rights reserved.