Hi,
Recently I was using winGrid and got a problem. When my grid's header has only one line, say I want to fix the first column then I could simply use the property XXXColumn.Header.Fixed to fix the column.
But when my grid's header has two line, is there any properties that I could also use to set the first column as fixed?
Thanks for your concern.
Hi, Milko
Thanks for your help, that's what I need.
And I'm still trying with that, thanks again.
Hi Richard,
Please let me know if you need my further assistance on this matter.
Thank you for using Infragistics Components.
Hello Richard,
Thank you for your feedback.
You are using Row Layouts to design the look of your grid. Please note while using Row Layouts you cannot use Fixed property – it is ignored. However please consider using Groups property of the Band. This may allow you to design your grid in appropriate way. More about Groups you may find by following the next link http://help.infragistics.com/Doc/WinForms/current/CLR4.0/?page=Infragistics4.Win.UltraWinGrid.v15.1~Infragistics.Win.UltraWinGrid.UltraGridBand~Groups.html
One more point. Fixed property is settable on column headers and group headers. So if you create a group of columns you can fix entire group.
Please let me know if you need any further assistance on this matter.
Here is what I got with the screenshot.
In the first screenshot I got one line header and I could use Band.columns[X].Header.Fixed = true to fix the column that I want to fix.
But with the second screenshot when I got multi-line header, I use the following code to implement it.
UltraGridColumn GridColumn = this.ultraGrid1.DisplayLayout.Bands[0].Columns[columnName];GridColumn.Header.Caption = caption;GridColumn.Header.Appearance.TextVAlign = Infragistics.Win.VAlign.Middle;GridColumn.Header.Appearance.TextHAlign = Infragistics.Win.HAlign.Center;GridColumn.RowLayoutColumnInfo.OriginX = x;GridColumn.RowLayoutColumnInfo.OriginY = y;GridColumn.RowLayoutColumnInfo.SpanX = spanX;GridColumn.RowLayoutColumnInfo.SpanY = spanY;GridColumn.RowLayoutColumnInfo.AllowCellSizing = RowLayoutSizing.None;GridColumn.SortIndicator = SortIndicator.Disabled;this.ultraGrid1.DisplayLayout.Bands[0].Columns[columnName].RowLayoutColumnInfo.LabelPosition = LabelPosition.LabelOnly;
Is that enough information? Hopefully get your help. Thanks.
Thank you for posting in our forum.
Can you please give me a little more information about your scenario? What you mean by grid’s header has only one line? Are you setting the ColHeaderLines of the band? Are you using Groups in your grid?
Can you please provide me a screenshot of your application or a small sample solution so I can investigate your issue further?
Looking forward for your reply. In the meantime please check also the following link related to the Fixed property of the UltraGrid’s column header http://help.infragistics.com/Help/Doc/WinForms/2015.1/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v15.1~Infragistics.Win.UltraWinGrid.HeaderBase~Fixed.html