Ticket Q364806
Visible to All Users

Display individual columns, even if they are grouped

created 13 years ago

hello again,
Is there a way to display individual columns, even if they are grouped? The GridOptionsView. ShowGroupedColumns property does not help me, because I would not like to have this behavior for all columns.
I didn't found any property in a columns object.
many greetings
Michael

Answers

created 13 years ago

Hi Michael,
Thank you for your question.
To achieve your goal, you can create a custom GridView, as it is described in the How to create a GridView descendant class and register it for design-time use example. In your custom GridView, it is necessary to override the CanShowColumn method so that it returns true if a column should be displayed. I have created a small sample to illustrate this approach.
Please do not hesitate to contact us in case of any difficulty.
Thanks,
Gosha

    Comments (1)

      Big thx, it works fine!

      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.