回复 18楼q406157290的帖子
我将用CreateCell的代码下面代码替换,就是可以实现:
- public override void CreateCellContent(C1FlexGrid grid, Border bdr, CellRange rng)
- {
- base.CreateCellContent(grid, bdr, rng);
- if (grid[rng.Row, 2].Equals("aa"))
- {
- bdr.Background = new SolidColorBrush(Colors.Green);
- }
- }
复制代码
具体在附件里,供你参考:
|