Can somebody tell me if it possible to have different columns in a listview with different justifications.
eg:
Column 1 is for Surnames so it should be left justified.
Column 2 is for Wage so it should be right justified.
Is it possible?
Printable View
Can somebody tell me if it possible to have different columns in a listview with different justifications.
eg:
Column 1 is for Surnames so it should be left justified.
Column 2 is for Wage so it should be right justified.
Is it possible?
yes, set the alignment property for each column!
Cheers but, thats no good to me because my listview has a different number of columns (and different data types in them) depending on certain conditions, so I really need to do it with code.
Also if you set the alignments, the column headers are aligned that way as well. Can it be done so that the columns are aligned but not the headers?
[Edited by Stevie on 05-24-2000 at 04:32 PM]
In your code when you decide what alignment you want, use this code.. set the lvwColumnRight to left or center, whichever is needed.
ListView1.ColumnHeaders(1).Alignment = lvwColumnRight
Thai
Except the first column. The first column will always be left justified. This is by Micro$oft design.
Cheers, I didn't think of looking under ColumnHeaders as I presumed they only refered to the headings.
So is there anyway to have the headings a different justification to the column?