Ticket Q379209
Visible to All Users

How to hide specific rows in the PropertyGridControl

created 12 years ago

[DevExpress Support Team: CLONED FROM Q501861: PropertyGridControl and ExpandoObject]
I need to hide some rows in the property grid according to some values in other rows
Thanks for your help
Regards
 Martin

Answers approved by DevExpress Support

created 12 years ago (modified 12 years ago)

To accomplish this task, handle the Sort event. Filter the args.SourceCollection collection and assign it to the args.ResultCollection property. I have attached a sample project to illustrate this approach.
Thanks,
Alexander Rus

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.