Visual Basic 6.0 translation

Sunday, May 8, 2011

VB 6.0 - Make DataGrid Header Columns Equal To Each Others

Microsoft Visual Basic 6.0 Datagrid control trick
Say, we've DataGrid control called (DG) Connected to a database table, and we want to make the Header Columns' width equal to each other and equal the datagrid width at the same time .............

Private Sub DGHeader()
For Each Column In DG.Columns
    Column.Width = Me.Width / DG.Columns.Count
Next

End Sub

Note:
Not likely suggested to a many columns datagrid .

Visual Basic 6.0 Lessons, Tricks, Tutorials and help links :
- Visual Basic 6.0 Color Picker tool source code 

No comments:

Post a Comment

visual basic 6 source code says (Hi)