Home › Forums › WinForms controls › Xceed Grid for WinForms › ColumnManagerRow
I want to create some space below the column header. I prove this code but it doesn’t work :
managerRow = new ColumnManagerRow();managerRow.ReportStyle.BottomMargin = 200;
The reason i think is that it is for the report preview and not for the grid. However, is a way i can create it ?
Imported from legacy forums. Posted by Edi (had 699 views)
There is no property to do this directly in the grid. You can only do this by deriving from the ColumnManagerRow class and overriding the Border property.
e.g. (this is the minimum implementation ):
public class MyColumnManagerRow : ColumnManagerRow
public override Borders Borders
return new Borders( 0, 0, 1, 200 );
Then in your code, replace the default ColumnManagerRow by yours :
private void Form1_Load( object sender, EventArgs e )
gridControl1.FixedHeaderRows.RemoveAt( 1 );
MyColumnManagerRow myManagerRow = new MyColumnManagerRow();
gridControl1.FixedHeaderRows.Add( myManagerRow );
Imported from legacy forums. Posted by André (had 409 views)
Thank you. It works.
Imported from legacy forums. Posted by Edi (had 815 views)