Public Class Form1
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim iRet As Integer
DataGridView1.AlternatingRowsDefaultCellStyle.ForeColor = Color.Red
DataGridView1.AlternatingRowsDefaultCellStyle.BackColor = Color.Wheat
For i = 1 To 20
DataGridView1.Columns.Add("Col" & i, "Col" & i)
Next i
For j = 1 To 100
iRet = DataGridView1.Rows.Add()
For x = 1 To 20
DataGridView1.Rows(iRet).Cells(x - 1).Value = x * j
Next x
Next
End Sub
End Class
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.