1、mark 选中颜色,drawcell事件
Dim cl = e.Table.grid.getCellRange(e.Row.index+1, e.Col.index+1)
If e.Row.Index > = e.Table.TopPosition AndAlso e.Row.Index <= e.Table.BottomPosition AndAlso e.Col.Index >= e.Table.LeftCol AndAlso e.Col.Index <= e.Table.RightCol Then
If cl.style Is Nothing Then
Dim cs1 As C1.Win.C1FlexGrid.CellStyle=e.Table.grid.Styles.Add("选中样式")
cs1.foreColor=Color.red
cs1.backColor =Color.Khaki
cl.style=cs1
Else
cl.style.foreColor=Color.red
cl.style.backColor =Color.Khaki
End If
Else
cl.style = Nothing
End If