Below is the code that successfully works for changing the background color of a cell in VBA Excel.
Sub ColorChange()
For i = 1 To 4
Cells(i, 2).Interior.ColorIndex = i + 2
Next i
End Sub
Can anyone help in getting how to change the DataGridView cells background color through this color index approach in VB.Net