Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1170
Field.PerformAutoSize infinite loop
posted

We're seeing a bug in one of our programs that uses the XamDataGrid with auto re-sizing columns.

The horizontal scroll bar is hidden by default, becoming visible when the width of the columns exceeds the width of the window. One of our columns usually contains nothing, but sometimes contains a long string of text. As soon as one of those rows appears on the grid, the width of that column increases and the horizontal scroll bar appears. If that row then gets covered by the scroll bar, either by scrolling or by new rows being appended to the top of the grid, the PerformAutoSize shrinks that column... so the horizontal scroll bar disappears. Then the row is back in view, the column expands, and the horizontal scroll bar appears and covers the row up again.

Has anyone seen this behavior before? If so, was any solution suggested? Thanks.