Hi,
I presume you want to put every record in an array of int. If so, this is the code:
Int32 [][] sam = new Int32[ds.Tables[0].Rows.Count][ds.Tables[0].Columns.Count]
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
for (int j=0;j<ds.tables[0].columns.count;j++)>
sam[i][j] = Convert.ToInt32(ds.Tables[0].Rows[i][j]);
You need to define a 2-dimentional array as you have a list of records.
I hope it will help,
Cheers.