以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  网格线请教  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=76370)

--  作者:hbhb
--  发布时间:2015/10/27 20:20:00
--  网格线请教
大师:请问如何单独设置选定区域的网格线?
--  作者:大红袍
--  发布时间:2015/10/27 20:23:00
--  

只能这样,比如

 

Dim t As Table = Tables("表A")
Dim cs1 As C1.Win.C1FlexGrid.CellStyle = t.grid.Styles.Add("cs2")
cs1.Border.Color = Color.Red
For i As Integer = t.TopPosition To t.BottomPosition
    For j As Integer = t.LeftCol To t.RightCol
        t.grid.SetCellStyle(i+1, j+1, cs1)
    Next
Next


--  作者:hbhb
--  发布时间:2015/10/27 20:33:00
--  
谢谢!我就是要达到这种效果。加10分!