ListView: some lines bold / first column right-align?

B

Boris Nienke

Hi,

two question about the ListView:

1.) why can't i set the first column to "right aligned"? It works with the
sub-items - but not for the first column.

2.) how can i set the font for some lines (depending on the date i like to
display) to bold or italic or change the color?

thanks

Boris
 
B

Boris Nienke

This is not supported with the standard ListView control, however you can
write an owner-drawn control which will give you more flexibility with
layout and formatting. See Alex's article here:-
http://www.opennetcf.org/Articles/ownerdrawnlist.asp

i've seen the OwnerDraw-List .... but it would be hard job to create a full
ListView by yourself doing it with owner-draw! Think about the Subitems
displayed in Rows which are sizeable... horizontal scrolling.. etc.

An OwnerDraw-Event for the ListView would be great but i havn't found it...
And you say it is not supported :'(

So, is there any ListView (or Grid with row-select and without gridlines)
out there where i can decide which color an item has? (or maybe which color
the background of an item has)... ??

Boris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top