I am seeking to loop thru all the cells in my dgv. I though you could do something like this:
Unfortunately the above code doesn't work. There is no Cells class at this level. Is this the only other way?
By the way, the above code isn't working. For some reason I can still access these columns. They are checkbox columns so I'm wondering if that makes a difference?
Thanks
Code:
For Each cell In DGV.Cells
NextCode:
For Each row As DataGridViewRow In dgv.Rows
For Each col As DataGridViewColumn In dgv.Columns
Select Case col.Index
Case 3 To 6
col.ReadOnly = True
End Select
Next
NextThanks