Hi Peryan,
I'm not sure I understand the question. Resizing the control is nothing to do with the grid itself. The grid is no different in this regard than any other control. You can anchor or dock it to the form.
If you want to resize the columns, then I would recommend using the PerformAutoResize method on the column which will size the column to it's contents. Be sure to use the right overload the this method, though. If yuo don't specify any parameters, it will only size to the visible rows.
Is there a way to assign auto resizing of columns via CSS or via DisplayLayout properties in Visual Studio?
There's no property to automatically always resize the columns. If you set AllowColSizing to Auto, it will automatically size the columns initially when the grid is first painted, but after that if you scroll or change the data, the columns will not resize again. If you want the columns to resize, you must call the PerformAutoResize method. This way, you control when the columns are sized.
When I set "<DisplayLayout ...AllowColSizingDefault="Auto" ....
I get the following error:
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Cannot create an object of type 'Infragistics.WebUI.UltraWebGrid.AllowSizing' from its string representation 'Auto' for the 'AllowColSizingDefault' property.
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
Is there another way to set this property on the grid?
yeah, me too. :)
I have the same question. I will ask support and post back here.
sorry posting from an old account...
Thanks. Can you also change the "answered" icon. There is no working resolution yet.