How do I highlight entire Row in ListView not just text.
Ok here is what I have:
lstGoToMenu.FullRowSelect = True
lstGoToMenu.Columns.Item(0).Width = 137
lstGoToMenu.Items.Add("Test")
Now when I hover my mouse over the word 'Test' only the letters of the word Test are highlighted. I want the whole row/column space to be highlighted not just the text.
Second question. i can change the background color and the text color. How can I change the highlight selected color?
thanks for all you help
Mythos.
Re: How do I highlight entire Row in ListView not just text.
1. Set the FullRowSelect property to true.
I'm not sure on #2
Re: How do I highlight entire Row in ListView not just text.
I do have full row select set to true. I have it also set to listview not detail because I didn't want the header on top. Any other ideas?
Re: How do I highlight entire Row in ListView not just text.
Quote:
Originally Posted by Mythos44
I do have full row select set to true. I have it also set to listview not detail because I didn't want the header on top. Any other ideas?
Um, FullRowSelect only works with detail. If you want a whole row selected, you should have headers labeling the data otherwise it won't make much sense.
If you have to do it in ListView... then I guess you'll have to create a custom class and override the draw method and manually do it (i know, i know). That or if there is a way to hide the row from the detailed view.