表的afterLoad事件,不用判断列名,直接写代码即可。对应的要变一下,如
cmd.CommandText = "xxxxxxxxxxxxxxxxx where " & e.DataTable.LoadFilter
'xxxxxxxxxxxxxxx
For Each dr As DataRow in e.DataTable.DataRows
Next