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
1192
XamGrid column not auto resize
posted

I am using MVVM. Binded IList from VM to XamGrid itemsource.I set all Column "Auto" and one column "*" to occupy rest space. My data in VM populate later by WCF. I nofity property and data also populated in Grid.

But, As per Content in Cell , Column doesn't get resized.

 

Parents
  • 40030
    Offline posted

    Hi, 

    So when a Column's Width is set to Auto, it will size to fit the width of the header cell or the largest data cell in view. As you scroll, if another cell has a larger width, than the current width it will grow as well. Note: that the column width will never become smaller. Also, if you resize the column manually, it will become a numeric width, and won't be auto sized, unless you double click the resize area so that it autosizes again. 

    Also, if you set to InitAuto, then it will only size the largest cells when it first loads. 

    Does this help clarify?

    If not, can you attach a sample showing the issue you're seeing?

    Thanks,

    -SteveZ

Reply Children
No Data