From gridView in matrix
I traing to write dates from dataGridView1 in matrix but I can't. this algorithm working when just l=c (l-lines, c-columns).
k = new int[l,c];
for ( int i = 1; i <l ; i++)
{
for (int j = 1; j < c; j++)
{
k[i,j] =int.Parse(dataGridView1[i,j].Value.ToString());
}
}
|