Home Forums WinForms controls Xceed Grid for WinForms Changing Location of Non-Fixed FooterRows Reply To: Changing Location of Non-Fixed FooterRows

User (Old forums)
Member
Post count: 23064

You could use a SpacerRow, insert it into the FooterRows collection at the previous index of the row(s) you want to show at the bottom, and set the SpacerRow height so the footer row(s) display where you want it/them.

SpacerRow row = new SpacerRow();
row.Height = 100;
gridControl1.FooterRows.Insert( 0, row );

Note that this will require some work. You will need to handle a few events to know if there are enough rows in the grid so you can simply use the FixedFooterRows collection, and if not, measure the space you need to fill with the SpacerRow so the FooterRows display at the right place, etc…

Imported from legacy forums. Posted by André (had 2880 views)