Ticket Q237952
Visible to All Users

Grid Column - Provide a way to set the column width relative to other columns

created 15 years ago

I'd like to set the column width within xaml where they're relative to each other. Something like column A will be 50%, Column B 25%, Column C 15%, Column D 10%. I know this is possible since the user can manually drag the columns width roughly to be that, and resizing of Window will result in all columns width changed accordingly.

Comments (3)
DevExpress Support Team 15 years ago

    Hello,
    >I'd like to set the column width within xaml where they're relative to each other… I know this is possible since the user can manually drag the columns width roughly to be that, and resizing of Window will result in all columns width changed accordingly.
    We change columns' width based on our internal algorithm. We don't provide any way to change this algorithm. We agree that this is a good feature. I've converted this issue to a suggestion.
    Thank you, Marina

      Please consider to implement this feature, it is really very useful.

      DevExpress Support Team 13 years ago

        In the latest versions of DXGrid, you can implement this functionality using the BandedViewBehavior extension. I suggest you review our "Data Grid -> Banded View" demo that demonstrates how to use this extension.
        Please try this extension and feel free to reactivate this thread if you have additional questions.
        Thanks

        Answers approved by DevExpress Support

        created 9 years ago

        This functionality became available in version 16.1 - starting with this version, the type of the Width property is changed to GridColumnWidth, and this property can be set to absolute and proportional values.

          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.