|
-
May 23rd, 2000, 09:09 PM
#1
Thread Starter
Fanatic Member
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?
-
May 23rd, 2000, 09:36 PM
#2
Frenzied Member
yes, set the alignment property for each column!
-
May 23rd, 2000, 10:31 PM
#3
Thread Starter
Fanatic Member
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]
-
May 24th, 2000, 12:13 AM
#4
Addicted Member
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
-
May 24th, 2000, 09:12 AM
#5
Except the first column. The first column will always be left justified. This is by Micro$oft design.
-
May 24th, 2000, 11:28 PM
#6
Thread Starter
Fanatic Member
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|