ListView text alignment

  • Thread starter Thread starter Simon Abolnar
  • Start date Start date
S

Simon Abolnar

I am using VB.NET 2003
Framework 1.1

I have a question of ListView.
Is it possible to align text in header centered, and text of items left?
I also seem that there is a bug. I can't align 1.st column header centered.
I solve the problem by aligning text left and then manually add spaces in
header text " text header".
How could I do this by code? I think that I could use GetItemRect. How?

Thanks for help!

Simon
 
* "Simon Abolnar said:
I have a question of ListView.
Is it possible to align text in header centered, and text of items left?

You will have to draw the headers yourself. Have a Google Grups Search on
this topic -- you won't find "ready-to-use" solutions but you will find
some tips.
I also seem that there is a bug. I can't align 1.st column header centered.
I solve the problem by aligning text left and then manually add spaces in
header text " text header".

That's by design. The 1st solumn is always left-aligned.
 
Back
Top