Sarfraz Ahmed
Sarfraz Ahmed

Reputation: 1399

How to sort Item in CListCtrl in MFC?

I made a Dialog based application in MFC. I put CListCtrl control on my Dialog and set its view style to report type. I have five columns in this list view. All columns are of String type. I want to implement the sorting in this list, That is when I click on a column it should sort item in the list. I saw many examples related to this. but none is working for me. Can some one guide me how to do that???

Thanks

Upvotes: 0

Views: 17842

Answers (1)

mox
mox

Reputation: 6324

Since it is MFC, this sample and this sample should work.

Upvotes: 3

Related Questions