ListView.ColumnClick doesn’t seem to fire for clicks in the header area that is outside the columns (area to the right of the last column, if there is any)
is there some easy way to detect clicks here?
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.
The listview header is a seperate entity/window inside the listview control. Unfortunately listview provides no mouse events with which you can capture any activity on the header (except the obvious ones). You are going to have to create extended version of the listview control and use some lower level unmanaged methods to get to that window and make those events available.
You can start here: http://www.codeproject.com/KB/list/HeaderRightClick.aspx.