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
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 to share