If e.DataCol.Name = "拼音码" Then Dim lb As DataRow lb = DataTables("收费项目").Find("[拼音码] = '" & e.NewValue & "'") If lb IsNot Nothing Then e.DataRow("项目类别") = lb("项目类别") e.DataRow("项目名称") = lb("项目名称") Else e.DataRow("项目类别") = Nothing e.DataRow("项目名称") = Nothing End If End If