老师好,下面代码对多层表头隐藏或显示不正确,另外排序也不对谢谢老师帮忙纠正。
TextChanged
Dim str As String = e.sender.text
Dim ary As String() = str.split(",")
Dim t As Table = e.Form.controls("table1").Table
For Each c As Col In t.Cols
c.visible = False
Next
For i As Integer = ary.length-1 To 0 Step -1
t.Cols(i).move(0)
t.Cols(i).visible = True
Next
Enter
If DataTables.Contains(e.Form.Controls("ComboBox表").Text) = False Then
Return
End If
e.Sender.ComboList = ""
e.Sender.Text = ""
Dim s As String
For Each dc As DataCol In DataTables(e.Form.Controls("ComboBox表").Text).DataCols
s + = dc.Name & "|"
Next
e.Sender.ComboList = s.Trim("|")
多层表头是怎么样的,输入的是什么数据?
排序不要使用datacols,改为cols
For Each dc As Col In Tables(e.Form.Controls("ComboBox表").Text).Cols
s + = dc.Name & "|"
Next
老师好,视图表窗口1筛选出来的列名称不正确,谢谢老师。