Home All Groups Group Topic Archive Search About

Column header resizing to accomade the lable

Author
29 Nov 2006 6:22 AM
Prashwee
Hi All

Just a small problem.
I am using DataGridView control for my project implementing in VB 2005.
I need to resize my column header lable withd dyamically so that the user
can see the lable text as a whole  when i enter headers text dynamically.
What is the property that i need to set here?

Thanks in advance
Prash

Author
29 Nov 2006 6:36 AM
RobinS
Check out the AutoSizeColumnsMode property of the DataGridView control.

Robin S.
----------------------
Show quoteHide quote
"Prashwee" <prashantha.weerak***@ifs.lk> wrote in message
news:eOH6463EHHA.3600@TK2MSFTNGP06.phx.gbl...
> Hi All
>
> Just a small problem.
> I am using DataGridView control for my project implementing in VB 2005.
> I need to resize my column header lable withd dyamically so that the user
> can see the lable text as a whole  when i enter headers text dynamically.
> What is the property that i need to set here?
>
> Thanks in advance
> Prash
>