有个问题,如下图箭头所示地方,怎么两条边条会不显示?用的就是如下代码
Dim t As Table = Tables("表A")
Dim cs1 As C1.Win.C1FlexGrid.CellStyle = t.Grid.Styles.Add("样式1")
Dim cs2 As C1.Win.C1FlexGrid.CellStyle = t.Grid.Styles.Add("样式2")
Dim cs3 As C1.Win.C1FlexGrid.CellStyle = t.Grid.Styles.Add("样式3")
cs1.Border.Width = 3
cs1.Border.Color = Color.Red
cs1.Border.Direction = 0
cs2.Border.Width = 3
cs2.Border.Color = Color.Red
cs2.Border.Direction = 1
cs3.Border.Width = 3
cs3.Border.Color = Color.Red
cs3.Border.Direction = 2
t.Grid.SetCellStyle(t.RowSel + 1,t.ColSel + 1,cs1)
t.Grid.SetCellStyle(t.RowSel,t.ColSel + 1,cs2)
t.Grid.SetCellStyle(t.RowSel + 1,t.ColSel,cs3)
此主题相关图片如下:20160820163856.png
