North American Sales: 1-800-231-8588
Global Contacts
My Account
Menu
North American Sales: 1-800-321-8588
My Account
Sign In/Register
Design & Development
Design & Develop
Best Value
Infragistics Ultimate
The complete toolkit for building high performing web, mobile and desktop apps.
Indigo.Design
Use a unified platform for visual design, UX prototyping, code generation and application development.
Web
Ignite UI for Angular
Ignite UI for JavaScript
Ignite UI for React
Ultimate UI for ASP.NET
Indigo.Design
Desktop
Ultimate UI for Windows Forms
Ultimate UI for WPF
Prototyping
Indigo.Design
Mobile
Ultimate UI for Xamarin
Ultimate UI for iOS
Ultimate UI for Android
Automated Testing Tools
Test Automation for Micro Focus UFT: Windows Forms
Test Automation for Micro Focus UFT: WPF
Test Automation for IBM RFT: Windows Forms
UX
Indigo.Design Desktop
Collaborative prototyping and remote usability testing for UX & usability professionals
Indigo.Design
A Unified Platform for Visual Design, UX Prototyping, Code Generation, and App Development
Business Intelligence
Reveal Embedded
Accelerate your time to market with powerful, beautiful dashboards into your apps
Reveal App
Empower everyone in your organization to use data to make smarter business decisions
Team Productivity
Learn & Support
Support
Help & Support Documents
Blogs
Forums
Product Ideas
Reference Applications
Customer Stories
Webinars
eBook & Whitepapers
Events
Free Trials
Pricing
Product Pricing / Buy Online
Renew Existing License
Contact Us
Forums
Ultimate UI for Windows Forms
Your Privacy Matters
: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use.
Cookie Policy
Close
State
Not Answered
Replies
3 replies
Subscribers
7 subscribers
Views
663039 views
Users
0 members are here
UltraListView
UltraListView sorting
C#
Share
More
Cancel
83
Manually set Sort Glyph
Frank
posted
over 16 years ago
Hi, I created a detailed ListView with two Columns, one of these columns is invisible. I do some changes on the values before I add them to the visible column. The original value was added into the hidden column. When I sort the visible column, I catch the Sorting Event and programmtically sort the hiddencolumn. Now there a two questions: 1st) How can I set the SortGlyph (the littel arrows) on the visible column manually, because after sorting by the hidden column there are not visible any more. 2nd) Is there a better way to do this work? I am not very happy with the hidden column. Thanks a lot!
Parents
No Data
Reply
2334
Andrew
posted
over 16 years ago
You could try setting the SortComparer of the MainColumn to a custom IComparer that sorts based on the hidden values. This way the ListView will add the sort glyph to the main column but the values will be sorted based on hidden values.
Cancel
Reply
Cancel
Children
83
Frank
posted
over 16 years ago
in reply to
Andrew
The problem here: This does only work if the visible column is the main column. In my case the two columns are SubItemColumns. My real ListView is much more complex then the one in my description above.
Cancel
Reply
Cancel