Hi, iam currently useInfragistics4.Win.UltraWinGrid.v11.2i have a simple grid with 10 Columns. At Runtime i create the Grid. Now is it possible that the user can change the size of the Columns at Runtime?Or did you have a Solution or Idea how the User can resize the Columns? And save this Grid Layout.Best Regards
Hello Martin,
martin2004 said:Now is it possible that the user can change the size of the Columns at Runtime?
Yes, it is possible. You could set property for example:
- this.ultraGrid1.DisplayLayout.Override.AllowColSizing = Infragistics.Win.UltraWinGrid.AllowColSizing.Free;
martin2004 said:Or did you have a Solution or Idea how the User can resize the Columns? And save this Grid Layout
You could use our methods ultraGrid1.DisplayLayout.SaveAsXml(); and ultraGrid1.DisplayLayout.LoadFromXml(); ultraGrid1.DisplayLayout.Save(); and ultraGrid1.DisplayLayout.Load();
Let me know if you have any questions.
Regards
Hi Georgi, thanks for your reply. When i now save the grid configuration from the user, and load it after application start (ultraGrid1.DisplayLayout.Load)did i have anything to remember because of i first create the grid manually.an other question is, whats the best thing for the user to display or hide columns on runtime. should i take the columnchooser for this?in my builded grid, i have several columns hidden. is that also practicabel for the columnchooser?Regards
If you need any further assistance, please do not hesitate to write us
martin2004 said:whats the best thing for the user to display or hide columns on runtime. should i take the columnchooser for this?in my builded grid, i have several columns hidden. is that also practicabel for the columnchooser?
Maybe the best option could be if you are using ColumnChooser. Also please note that each UltraGrid`s column has a property "ExculdFromColumnChooser", so using this property you could determinate wich column to be visible in the ColumnChooser or not.