Ticket AS3122
Visible to All Users

Add a MaxWidth property for a grid column

created 19 years ago (modified 16 years ago)

I have a grid with ColumnAutoWidth=True. It contains several text columns that I want to dynamically expand in width to fill the available grid width. However, for the columns displaying currency data I would like to specify a "MaxWidth" value so that they do NOT expand beyond a certain width. I know I can achieve this by making them "FixedWidth" but this does not allow them to shrink at all. Is there some way to do this?
Proposed Solution:
Please see the attached sample.

Show previous comments (1)
CS CS
Chameleon Software 17 years ago

    It's been more than 2 years since I first posted this request and it still hasn't been implemented. Is there really any plan to do it?

    Stan (DevExpress Support) 17 years ago

      Hello David,
      Thank you for the response. I'm afraid, this feature won't be implemented in the near future. Our developers are implementing new features based upon the number of votes. Unfortunately, there are only a few customers who asked for this functionality. So, we'll implement this feature, if we receive more requests for it. However, you can introduce the required functionality yourself by creating your own XtraGrid descendant as demonstrated in the attached sample project.
      Please let me know if this solution meets your requirements.
      Thanks,
      Stan.

      MF MF
      Mike Falcon (DevExpress) 16 years ago

        The following property has been added:
        GridColumn.MaxWidth;

        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.