显示行号

通过表格的RowHead属性,可以左边多少列作为行头,行头通常用于显示行号。

一个例子:

Select Case e.Path
    Case "table.htm"
       
Dim wb As New WeUI
        With wb.AddTable("","Table1")
            .RowHead = 1
'
左边第一列作为行头
            .head.AddRow("",
"
部门","姓名","年龄","电话","地址") '表头,行号列标题为空
            .body.AddRow("1",
"
技术部","张三","36","110","中国北京") '数据
            .body.AddRow("2",
"
技术部","李四","38","110","中国上海")
            .body.AddRow("3",
"
技术部","王五","39","110","中国深圳")
            .body.AddRow("4",
"
生产部","赵六","39","110","中国深圳")
            .body.AddRow("5",
"
生产部","刘七","39","110","中国深圳")
        End With
        e.WriteString(wb.Build)

End
Select

下图是再手机上显示的效果:


本页地址:http://www.foxtable.com/mobilehelp/topics/0066.htm