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.
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
Thanks Steve,
I got my problem. My container width impose constraint to XamGrid. Width "*" and "Auto" work with width of XamGrid which inherited from Container. On first load i don't have data so, as per header's width it adjust column width. On new data refresh it keep as it is.
I increased container width and set minWidth of column gives desired output.
Thanks Again.