I have a button and command and when I click on it, I need to copy all information from my datagrid to an Arraylist. For example: The datagrid has 4 columns and 10 lines all have information, now comes my dilemma, when clicking on the baton I need to copy all datragrid to an arrylista. I am using the following code.
ArrayList Array = new ArrayList();
foreach (DataGridViewCell item in dgvCompeticao.CurrentRow.Cells)
{
Array.Add(item.Value);
}
But this code is copying just the line