Listview:Right align the 1st column


Author
Message
Michel Levy
Michel Levy
Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
Hi,

I need to right align the 1st column of a listview, where data are Integer.
I understand that these integer are "mapped" to text for displaying in the listview, but why is it impossible to set alignment to right on the first column (and only the first, alignment works fine on other columns)
either in property sheet or in ListPopulating event, it does not work.

As a workaround, I set the format to D5, but the readability is poor. What do I forget? How could I right align, or PADL with spaces?

thanks

Attachments
populset.jpg (134 views, 40.00 KB)
espion.jpg (155 views, 36.00 KB)
devisu.jpg (162 views, 9.00 KB)
Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
I believe there should be some technical explanation as to why the first column can not be aligned to the right.

Yes, but it wil have to come from Microsoft! Smile  Our ListView inherits from the standard .NET ListView. This will change in future releases so that we have 100% control over things just like this.  Dustin will post a workaround shortly.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search