- CellStyle cs = flex.Styles.Add("REDLINE");
- cs.Border.Color = Color.Red;
- cs.Border.Direction = BorderDirEnum.Horizontal;
- for (int i = 1; i < flex.Rows.Count; i++)
- {
- if (flex[i, "BDATE"].ToString() != flex[i - 1, "BDATE"].ToString())
- {
- flex.Rows[i - 1].Style = flex.Styles["REDLINE"];
- }
- }
复制代码
没有合并过单元格 |