Doubt in ListView Control

  • Thread starter Thread starter Prakash
  • Start date Start date
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.
 
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.
 
Back
Top