dim dr As DataRow = DataTables("授权").find("表名 = '订单主表'" )
if dr isnot nothing then
If dr.IsNull("列名") Then
Tables("窗口1_table11").AllowEdit = Not dr("不可编辑")
Else
Tables("窗口1_table11").Cols(dr("列名")).Visible = Not dr("不可见")
Tables("窗口1_table11").Cols(dr("列名")).AllowEdit = Not dr("不可编辑")
End If
end if