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

Copy values subarray to datagrid subarray.

C#
public static void ValuesToGrid(TMtx src, DataGrid grid, int gridrow, int gridcol, int srcrow, int srccol, int rowcount, int colcount, string format, bool headers);
Parameters
Parameters 
Description 
src 
Source matrix. 
grid 
Destination datagrid. 
gridrow 
First populated row index. 
gridcol 
First populated column index. 
srcrow 
First matrix row to be copied. 
srccol 
First matrix column to be copied. 
rowcount 
Number of rows to be copied. 
colcount 
Number of columns to be copied. 
format 
Format for double to string conversion. 
headers 
If true, first datagrid row and column are index numbered. 

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].

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