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 WPF
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
See Verified Answer
Replies
2 replies
Subscribers
6 subscribers
Views
752400 views
Users
0 members are here
XamDataGrid
Share
More
Cancel
695
Hide a column when clicked
Martin Fenech
posted
over 16 years ago
Is it possible to hide a column when the column in question is clicked?
695
Verified Answer
Martin Fenech
posted
over 16 years ago
in reply to
Joe Modica
This works
Cancel
Reply
Reject Answer
Cancel
8576
Offline
Joe Modica
posted
over 16 years ago
Hi Martin -
Try this:
Set the
Field.Settings.LabelClickAction
for the field in question to
SortByOneFieldOnly
Add a listener for the XamDataGrid's
Sorting
event
When the event is fired, set the
Cancel
parameter to true (this will stop the sort from taking place). The
SortDescription
property of the event's args exposes a
FieldSortDecription
object that contains a
Field
property
Set the
Field.Visibility
property to collapsed
Joe Modica
Cancel
Reply
Cancel