listview columns forecolor vb.net

  • Thread starter Thread starter marfi95
  • Start date Start date
M

marfi95

I'm trying to display something like a grid with a listview, where the
first column is grayed and has an indicator in it that tells the user
that row has been processed. I would really like to stick with the
listview for this.

My question is can I have the first column be a different color than
the other ones. That way I can put a * in the column (or a check
character) to act as an indicator.

Mark
 
I'm trying to display something like a grid with a listview, where the
first column is grayed and has an indicator in it that tells the user
that row has been processed. I would really like to stick with the
listview for this.

My question is can I have the first column be a different color than
the other ones.

Yes, simply set the first item's 'UseItemStyleForSubItems' property to
'False'.
 
In addition to this, can I put an icon into the 1st column to represent
success/failure of the process.

Mark
 
In addition to this, can I put an icon into the 1st column to represent
success/failure of the process.

Take a look at the listview control's 'SmallImageList' and 'LargeImageList'
properties and the listview item's 'ImageIndex' property.
 
Thanks. Thats all working now, but 1 more question just for
appearances.

In my first column, I put an icon. I have 'UseItemStyleForSubItems'
set to true for it so it will be the same as the rest. However, when I
select some rows in the list view under fullrowselect, the selection
color doesn't include the column where the icon is. It is still the
default background color.

Can I get around that ?

Thanks.
 

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

Back
Top