With Args(0) '数据表 For Each c As Col In Args(0).Cols c.Visible = Args(1).Contains(c.name & ",") Next '列宽度及显示位置 Dim i as Integer = 0 Dim ColName as String Dim Vals As New List(Of String) Vals.AddRange(Args(1).Split("|")) For Each Val as String in Vals ColName = Val.substring(0,Val.indexof(",")) '取得列名称 Args(0).Cols(ColName).Move(i) '移动位置 Args(0).Cols(ColName).Width = Val.substring(Val.indexof(",")+1) '设置宽度 dim j as integer = Val.substring(Val.indexof(",")+1) i = i + 1 Next End With