How can I setup a ListView in a WinForm so that when an item is selected it is not highlighted? i.e. no blue background.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ObjectListView — an open source wrapper around a .NET ListView — allows you to choose which colors you want the selected items to have. So you can set the highlighting background color to be the same as the ListView, and just change the foreground color. As David H pointed out, you will have to do something different with the selected rows!
In the following shot, the selected row has a darker background and lighter text color: