Hello, I need to select n-1 rows from datagrid and my code is:
foreach (DataGridViewRow row in dataGridView1.Rows)
{
foreach (DataGridViewCell cell in row.Cells)
{
pdfTable.AddCell(cell.Value.ToString());
}
}
from where I should change to select all rows except last row..
Thanks in Advance.


Amit GuptaRank #190 · 12.8K reputationPosted Mar 8, 2017, 9:33 PM EST
Ankit ShuklaRank #2,120 · 672 reputationPosted Mar 8, 2017, 10:04 PM EST