Home Forums WinForms controls Xceed Grid for WinForms How do I access the ColumnManagerRow? Reply To: How do I access the ColumnManagerRow?

User (Old forums)
Member
Post count: 23064

If you drop the GridControl in the designer, this will be the second row in the FixedHeaderRows collection, the first being the GroupByRow.  You can access it through the variable created by the designer or as shown above, by the FixedHeaderRows collection.

e.g.:

columnManagerRow1.BackColor = Color.Blue;

or

ColumnManagerRow colManager = gridControl1.FixedHeaderRows[ 1 ] as ColumnManagerRow;

colManager.BackColor = Color.Blue;

 

If you want this to work, whatever theme is selected for the grid (through the UIStyle property), set the OverrideUIStyle property to true.

e.g.;

columnManagerRow1.OverrideUIStyle = true;

columnManagerRow1.BackColor = Color.Blue;

 

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