If e.DataCol.name = "月" Then
For Each c As DataCol In e.DataTable.DataCols
If c.name Like "*dj*" Then
Dim name1 As String = Left(e.DataCol.Name.Replace("dj", ""),1) '去掉后二位dj和第一位字符得到编号
Dim drb As DataRow
drb = DataTables("表A").Find("编号 = '" & name1 & "'") '找到表识别中编号为name1的行
If drb IsNot Nothing Then
e.DataRow(c.name) = drb("价格") '自动从"表识别"取数
End If
End If
Next
End If