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 applicable to many columns DataGrid. 💌Visual Basic 6.0 Lessons, Tricks, Tutorials and help links : - Automate MS-Access Database in Visual Basic 6.0 though a net work - Visual Basic 6.0 Analog Clock - Vi sual Basic 6.0 Temperature Convertor - Visual Basic 6.0 , MS-Access 2003 and Crystal Reports - Phone book - Visual Basic 6.0 , MS-Access 2003 Database and DataGrid - Visual Basic 6 .0 FTP full application source code - Visual Basic 6.0 Color Picker tool source code