以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  表的行号和复选框能否同时显示?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=52567)

--  作者:scott518
--  发布时间:2014/6/18 13:27:00
--  表的行号和复选框能否同时显示?

如果表显示了复选框,还想要显示行号出来,有办法吗?谢谢!


图片点击可在新窗口打开查看此主题相关图片如下:360截图20140618132418110.jpg
图片点击可在新窗口打开查看


--  作者:有点甜
--  发布时间:2014/6/18 14:03:00
--  
无法同时显示。
--  作者:Bin
--  发布时间:2014/6/18 14:04:00
--  
不可以,你可以设置一个逻辑列,当作复选框使用
--  作者:Neha
--  发布时间:2014/6/18 18:18:00
--  

‘’全局代码
Public  Sub OwnerDrawCell(ByVal sender As Object, ByVal e As C1.Win.C1FlexGrid.OwnerDrawCellEventArgs)

If e.Row >= sender.Rows.Fixed And e.Col = sender.Cols.Fixed - 1 Then
    Dim rowNumber As Integer = e.Row - sender.Rows.Fixed + 1
    e.Text = rowNumber.ToString()

e.Style.ForeColor = Color.SteelBlue
e.Style.TextAlign = C1.Win.C1FlexGrid.TextAlignEnum.CenterCenter
End If

If e.Row = 0 Then
    e.Style.ForeColor = Color.Black
End If
End Sub
‘’我一般都放在项目事件里面
AddHandler tables("表A").Grid.OwnerDrawCell, AddressOf OwnerDrawCell


使用期限到了行号咧没有行号,用这个也可以的哦,,希望不要被河蟹的好

--  作者:fubblyc
--  发布时间:2014/6/28 18:18:00
--  

这个可以有。而且很简单。

 

看下面帖子8楼。

 

http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=47143&skin=0

 

 

[此贴子已经被作者于2014-6-28 18:18:51编辑过]