I am working on adding a multi column header on an already existing ultragrid headers in windows application using C#. I couldn't find anything at design time to add a multi column header. please advise how I can do this.
Thanks
Assuming that by "multi column header" you mean a header that appears above the column headers and that groups one or more columns together, you can add an UltraGridGroup to the UltraGrid.DisplayLayout.Bands[x].Groups collection, and assign a reference to that instance to the UltraGrid.DisplayLayout.Bands[x].Columns[y].Group property.
Example:UltraGridGroup group1 = this.ultraGrid.DisplayLayout.Bands[0].Groups.Add( "group1" );UltraGridGroup group2 = this.ultraGrid.DisplayLayout.Bands[0].Groups.Add( "group2" );
this.ultraGrid.DisplayLayout.Bands[0].Columns["Column1"].Group = group1;this.ultraGrid.DisplayLayout.Bands[0].Columns["Column2"].Group = group2;this.ultraGrid.DisplayLayout.Bands[0].Columns["Column2"].Group = group2;