Doubt in ListView Control

P

Prakash

Hi Friends,

I am developing scheduler application using C#. For displaying all
schedule information i am using ListView control. Based on the status
of the schedule, i have displayed the schedule information in the list
view as seperate colors.

I have faced the problem with deselecting the list view item. For
example, if i select the first row,(with blue color) of the list view
and deactivate the selected item by clicking the row which has no
elements, the color for the first row not appear, it appear as white
color. I just apply refresh method also. but i didn't get the actual
color at the row.

Please help me to solve this issue.

Regards,
Prakash.
 
B

Bruce Wood

Prakash said:
Hi Friends,

I am developing scheduler application using C#. For displaying all
schedule information i am using ListView control. Based on the status
of the schedule, i have displayed the schedule information in the list
view as seperate colors.

I have faced the problem with deselecting the list view item. For
example, if i select the first row,(with blue color) of the list view
and deactivate the selected item by clicking the row which has no
elements, the color for the first row not appear, it appear as white
color. I just apply refresh method also. but i didn't get the actual
color at the row.

How are you setting the colours for the list view items? I use the
BackColor property of ListViewItem and it works fine for me.
 

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

Similar Threads


Top