for (int i = 0; i < Form1.dataGridView1.Rows.Count; i++)
{
DataGridViewRow row = Form1.dataGridView1.Rows[i];
for (int j = 0; j < row.Cells.Count; j++)
{
// vypis stlpcov
ExcelApp.Cells[i + 1, j + 1] = row.Cells[j].Value;
}
}
Paulie napsal(a):