--
Dim rgd As WinForm.RecordGrid = e.Form.Controls("RecordGrid1")
rgd.Table = Tables("员工")
Tables("员工").OpenView("某视图")
Dim ste As String = ""
For Each c As Col In Tables("员工").Cols
If c.Visible = True
ste = ste & "|" & c.Name
End If
Next
rgd.Columns = ste.Trim("|")
rgd.Build()