谢谢您的反馈。
修改后的Demo:
按照您的Demo,改写如下:
- public override void ApplyCellStyles(C1FlexGrid grid, CellType cellType, CellRange range, Border bdr)
- {
- if (cellType == CellType.Cell && (grid.Rows[range.Row] as Row) != null)
- {
- Row rowExt = grid.Rows[range.Row] as Row;
- if (grid.Selection.Row == range.Row)
- rowExt.FontWeight = FontWeights.Bold;
- else
- rowExt.FontWeight = FontWeights.Normal;
- }
- //base.ApplyCellStyles(grid, cellType, range, bdr);
- }
复制代码 |