Hy all.
I am using Infragistics 8.2. Do you know if it's possible to have something like auto-sizing for the columns of the grid (set the size of the column depending on the content)?
Thanks a lot
Nico
Hi Nico,
The xamDataGrid component from the NetAdvantage for WPF 2008 Volume 2 release does not supportauto-sizing to the width of cells to the cell content (only auto-sizing to the cell height).The reason we don't support this is because in WPF that would require hydrating all of the CellValuePresentersfor every record which, unless you had a very limited number of records, would be extremely slow. In order to make the XamDataGrid responsive we opted for a aggressive element recycling approach instead which unfortunately precludes auto-sizing to the cell width.
Best Regards,Yanko
Hi,
Does anyone have any work around for this highly desirable feature? Any code snippets that works? In my case, I just need an on-demand resize feature, so that the grid will not auto-resize in real time, but it will perform the "smart" width resize only one time, only after users clicked a button.
Thanks,
If the user double-clicks the column separator, the column autosizes, very much like excel. It is one time, user triggered and very intuitive. Will that work for your case? ( oh, just saw how stale this post is! )