AlternatingRows DataGridView in Visual Basic.NET 2005
Create a procedure like below , I give name of Datagridview GridSupplier and procedure with name GridBerwarna
Sub GridBerwarna()
With Me.GridSupplier
.RowsDefaultCellStyle.BackColor = Color.BlanchedAlmond
.AlternatingRowsDefaultCellStyle.BackColor = Color.Azure
End With
End Sub
Then we call the procedure like this :
‘ Prosedur panggildata
Sub PanggilData()
’ Another code here….
……………
……………
……………
Call GridBerwarna()
End Sub