If e.DataCol.Name = "班级" OrElse e.DataCol.name = "年级" Then Dim drs As List(of DataRow) = DataTables("表A").Select("[年级] = '" & e.DataRow("年级") & "' and [班级] = '" & e.DataRow("班级") & "'") Dim v As String = "" For Each dr As DataRow In drs v = v & ("收费名称")&dr("收费标准") & "," Next e.DataRow("收费内容") = v.Trim(",") End If