How do I set ListViewSubItem BackColor on Windows Mobile?

I want to change the BackgroundColor of a ListViewSubItem in a ListView on Windows Mobile. I am using Compact Framework ListView, which ListViewItems allows setting the BackColor to the whole row, which I don't want.

I have two questions:

  • Is it possible?
  • If possible, I know I need a P / Invoke to get this to work (since ListView.ListViewSubItem only offers a Text property) or send the correct Windows message. What's the correct function to call or the correct message to send?

Even a pointer in the right direction would even be appreciated.

0


a source to share


3 answers


Christian Helle shows you how to customize CF ListView sheets here .



+1


a source


I assume that you need to draw the list item yourself; use the default for the main element and do what you want for the sub, MSDN example here or something.



0


a source


try to enable owner edit true .. and set your own color in the picture. you wil get borders .. draw your own color

-1


a source







All Articles