多层表头

使用WeUI框架,不需要任何技巧,即可实现多层表头。

一个例子

HttpRequest事件代码:

Select Case e.Path
    Case "table.htm"
       
Dim wb As New WeUI
        With wb.AddTable("","Table1")
            .head.Addrow(
"
部门","姓名","信息","信息","信息")
            .head.AddRow(
"
部门","姓名","年龄","电话","地址")
            .body.AddRow(
"
技术部","张三","36","110","中国北京")
            .body.AddRow(
"
技术部","李四","38","110","中国上海")
            .body.AddRow(
"
技术部","王五","39","110","中国深圳")
            .body.AddRow(
"
生产部","赵六","39","110","中国深圳")
           
.body.AddRow("生产部","刘七","39","110","中国深圳")
        End With
        e.WriteString(wb.Build)

End
Select

这是在手机上的显示效果:

原理很简单,正常填入表头各单元格的值,Foxtable会自动合并表头中内容相同的单元格。


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