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 

Comments

Anonymous said…
An outstanding share! I've just forwarded this
onto a friend who had been doing a little homework on this.
And he in fact bought me lunch due to the fact that I discovered it for him...
lol. So let me reword this.... Thank YOU for the meal!!
But yeah, thanks for spending the time to talk about this subject here on your blog.



Here is my website; TequilaEPock
Anonymous said…
Pretty! This has been an incredibly wonderful post. Thank you for providing
these details.

Feel free to surf to my blog; LaureenUAnand
Anonymous said…
I always emailed this blog post page to all my friends, since if like to read it afterward my links will
too.

my web-site - BrainNBillegas
Anonymous said…
Hi there! Do you know if they make any plugins to assist
with SEO? I'm trying to get my blog to rank for some targeted keywords but
I'm not seeing very good success. If you know of any please share.
Cheers!

Feel free to visit my blog; CheryQFedigan
Anonymous said…
I was recommended this website by my cousin. I am
not sure whether this post is written by him as nobody else know
such detailed about my problem. You are amazing!
Thanks!

Here is my blog ArlettaMPouge
Anonymous said…
Its like you learn my mind! You appear to know so much about this, such as
you wrote the e book in it or something. I
feel that you simply could do with a few p.c. to pressure the message house a little bit, however instead of that, that is wonderful blog.
An excellent read. I'll definitely be back.

my web-site ... CodyTReninger
Anonymous said…
It's an remarkable post in favor of all the online visitors; they will obtain advantage from it I
am sure.

Feel free to surf to my blog post ChasityQBothe
Anonymous said…
When I originally left a comment I seem to have clicked the -Notify me when new
comments are added- checkbox and now every time a comment is
added I get 4 emails with the same comment. Is there a way you can remove me from that service?

Thanks a lot!

Here is my web site CarrolGFjeseth
Anonymous said…
It's great that you are getting ideas from this paragraph as well
as from our argument made at this time.

Here is my blog - AugustusXThone

VB6 Popular Posts

Visual Basic Online Course - Excel 2003 Part 1

VB 6.0 - Save/Retrieve Images From Access Database

Visual Basic Online Course - ProgressBar Colors

VB 6.0 with MS-Access 2003 Copy a record from table to another

Free download Visual Basic 6 Documentation MSDN

Visual Basic Online Course - Run-time error '3021' : Either BOF or EOF is True, or the current record has been deleted.

Visual Basic Online Course - Create a Phone Book

VB6 Crystal Reports 4.6 Error : Method 'Action' of object 'CrystalCtrl' Failed

Visual Basic Online Course - Excel 2003 Part 2