Home Forums WinForms controls Xceed Grid for WinForms stack column results on top of each other…? Reply To: stack column results on top of each other…?

Xceed Support
Member
Post count: 5658

By default, the grid does not support multiple column headers however you can simulate the behavior by creating your own <a href=”http://www.xceedsoft.com/cs/download/XceedGrid/CSharp/CustomColumnManagerRow.txt”>custom column manager row</a> .

You can then use your custom ColumnManagerRow rather than the one included with the grid :

gridControl1.FixedHeaderRows.Insert( 0, new CustomColumnManagerRow( gridControl1.Columns.Count / 2 ) );
gridControl1.FixedHeaderRows.Insert( 1, new CustomColumnManagerRow( gridControl1.Columns.Count / 4 ) );

columnManagerRow1.AllowColumnReorder = false;

Keep in mind that you must disable column reordering when using this custom ColumnManagerRow.

Imported from legacy forums. Posted by Jenny [Xceed] (had 2993 views)