CodePudding user response:

CodePudding user response:
//set a first line format (middle and color)C1FlexGrid grid;
The grid=(C1FlexGrid) c1GanttView1. Controls [2].
The grid. The Cols. [1] AllowEditing=false;
CellStyle style=grid. Styles. The Add (" Row_TextAlign ");
Style. TextAlign=TextAlignEnum. CenterCenter;
Style. The BackColor=Color. SkyBlue;
The grid. The Rows [0]. Style=Style;