How can I display a sort arrow in the header of the sorted column in a list view which follows the native look of the operating system?
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.
You can use the following extension method to set the sort arrow to a particular column:
Then, you can call the extension method like such:
It works by using P/Invoke to:
fmtto set / clear theHDF_SORTDOWNandHDF_SORTUPflags on the returned HDITEM structure.This is what it looks like: