I want to copy from one datagridview to another datagridview.
I tried the code below but I still have all data in the first columns :
For c = 0 To Re
As much as I remember you just need to put this in your code
For Each row As DataGridViewRow In classDataGridView.SelectedRows
Dim text As String
For Each cell As DataGridViewCell In classDataGridView.SelectedCells
text = cell.Value.ToString
For Each scheduleCell As DataGridViewCell In scheduleDataGridView.SelectedCells
scheduleCell.Value.ToString.Equals(text)
Next scheduleCell
Next cell
Next