Ticket Q431369
Visible to All Users

InfiniteGridSizeException was unhandled

created 13 years ago

Hi,
Can anyone explain why this solution is generating an error regarding grid height? When the bottom row is not spanned the error does not occur however I can't see why spanning the row would create an issue regarding grid height.

Regards,Tom

Answers

created 13 years ago (modified 13 years ago)

Hi Tom,
The cause of this exception has been discussed in detail in the context of the ID Q264391, Can DXGrid have Auto Height based on the # rows? thread. Please take a moment to review this ticket and let us know if you need additional information.

    Comments (2)

      But we're not setting the grid to auto for that row? It is set to stretch?? It seems to only be a problem when we set the columnspan of another control to 2??

      DevExpress Support Team 13 years ago

        Hi Tom,
        Thank you for your update. This behavior is caused by the fact that the standard Grid control arranges child elements using an infinite height if the ColumnDefinition.Width property is set to 'Auto' and the RowDefinition.Height property is set to '*'. You can check this by using standard controls as shown in the attached project. I am not sure that this behavior is correct, but, to my regret, we cannot fix it on our side.
        As a workaround, I suggest you use DockPanel that arranges child elements as expected.
        Thanks

        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.