代码如下:
If e.Row.Isnull("责任人") = False Then
If e.IsFocusCell Then
Dim cmd As New SQLCommand
Dim dt As DataTable
cmd.C
cmd.CommandText = "SELECT 序号,岗位,考核内容 From {考核项目}"
dt = cmd.ExecuteReader()
Select Case e.col.name
Case "考核内容"
If e.Row.isnull("考核序号") = True Then
e.Table.cols("考核序号").ComboList = dt.GetComboListString("序号", "岗位 = '" & e.Row("岗位") & "' Or 岗位 = '全部门'")
Else
e.Table.cols("考核序号").ComboList = dt.GetComboListString("序号", "(岗位 = '" & e.Row("岗位") & "' Or 岗位 = '全部门') and 考核内容 = '" & e.Row("考核内容") & "'")
End If
Case "考核序号"
If e.Row.isnull("考核内容") = True Then
e.Table.cols("考核内容").ComboList = dt.GetComboListString("考核内容", "岗位 = '" & e.Row("岗位") & "' Or 岗位 = '全部门'")
Else
e.Table.cols("考核内容").ComboList = dt.GetComboListString("考核内容", "(岗位 = '" & e.Row("岗位") & "' Or 岗位 = '全部门') and 考核内容 = '" & e.Row("考核内容") & "'")
End If
End Select
End If
End If
现在就是一行空数据正常下啦 是出现一列内容选择,但是我如果选择完毕后 到下一行再下啦 就只会出现一条下拉数据 和刚才下拉选择后的一模一样 请问是什么情况?
正常情况
此主题相关图片如下:1.jpg

新行异常情况

此主题相关图片如下:2.jpg
[此贴子已经被作者于2011-12-9 12:45:02编辑过]