Dim mColumnWidth As Integer
For i = 0 To (DataGrid1.Columns.Count - 1)
Select Case i
Case 0, 2, 4
mColumnWidth = 2000
Case Else
mColumnWidth = 500
End Select
DataGrid1.Columns(i).Width = mColumnWidth
Next
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.