父表(项目汇总表)与子表(财务到账收入)项目名称关联
父表 (财务到账_凭证号)列,取子表 (到账凭证号)字符串连接,间隔逗号
DataColChanged事件,请教老师哪里出错了
Select Case e.DataCol.Name
Case "项目名称","财务到账_凭证号"
Dim dr As DataRow = DataTables("财务到账收入").Find("项目名称 = '" & e.DataRow("项目名称") & "'")
If dr IsNot Nothing Then
dr("财务到账_凭证号") = e.DataTable.GetComboListString("到账凭证号","项目名称 = '" & e.DataRow("项目名称") & "'").Replace("|",",")
End If
End Select