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
495
Scrollbar appears instead of shrinking grid
posted

Hi

I use a xamDataGrid. I set AutoFit=true and and AllowResize=true on some FieldSettings. Around my Grid I placed a ScrollViewer. MinWidth of the Grid is set to its initial value.

At first everything seems fine. If I decrease the size of my window (which contains the grid) the scrollbar appears. Then if I increase the size of the window the grid and its columns stretches as expected. So far so good.

However, if I increase the size first the grid stretches as expected but then if I decrease the size the scrollbar appears. I would like to have the grid shrinking until it reaches its MinWidth before the scrollbar would appear... Can I do that?