Listview Check box header

flashkid10

Member
Joined
Dec 9, 2016
Messages
16
Programming Experience
Beginner
I currently have a listview that contain 5 columns and atextbox that helps search though the data stored. the search function isworking, but I want to link it to five bools (one for each column) so that Ican search though it faster. how do I attach a checkbox to just the columnheaders (and still see the header name) and handle the event?
 

JohnH

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
685
Location
Norway
Programming Experience
10+

flashkid10

Member
Joined
Dec 9, 2016
Messages
16
Programming Experience
Beginner
Sorry it took so long to respond, yeah that work, but is there a way to change the checkstatus to true? also, is there a way toremove the outline arounf the text?
 

JohnH

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
685
Location
Norway
Programming Experience
10+
is there a way to change the checkstatus to true?
In code that is as simple as setting the columns Tag property to True, and Refresh the control, it will then draw the new value.
remove the outline arounf the text?
You have most likely set focused parameter (of DrawCheckBox call) to True, set it to False.
 
Top Bottom