--
Dim clist As WinForm.CheckedListBox = e.Form.Controls("CheckedListBox1")
Dim t As Table = CurrentTable
Dim pr As DataRow = DataTables("设置表默认字段不显示").sqlfind("表名=\'" & t.name & "\'")
If pr IsNot Nothing Then
s1 = pr("默认不可显示列名").Split(",")
For i As Integer = 0 To clist.Items.Count - 1
Dim s As String = clist.Items(i).split("(")(0)
If Array.IndexOf(s1, s) > -1 Then
clist.SetItemChecked(i, t.Cols(r1).Visible)
MessageBox.Show(i)
Else
clist.SetItemChecked(i, False)
End If
Next
End If