Private Sub ColorRows(ByVal array() As Integer, ByVal color As Color)
For i = 0 To array.Length - 1
DataGridView1.Rows(array(i)).DefaultCellStyle.BackColor = color
Open in new window
IT issues often require a personalized solution. With Ask the Experts™, submit your questions to our certified professionals and receive unlimited, customized solutions that work for you.