Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
Object reference not set to an instance of an object.
DropDownBox控件打开目录树错误
NodeMouseClick
If e.Node.Level = 1 Then
Dim tr As Row
Dim dr As DataRow = e.Node.DataRow
If e.Form.DropTable IsNot Nothing Then
tr = e.Form.DropTable.Current
Else
Dim nm As String = e.Form.DropDownBox.BindingField
nm = nm.Split(".")(0)
tr = Tables(nm).Current
End If
tr("工序") = dr("工序")
tr("工步") = dr("工步")
e.Form.DropDownBox.Value = tr("工步")
e.Form.DropDownBox.CloseDropdown()
End If
能否加一个判断,如果控件没有绑定,就执行e.Form.DropDownBox.Value = dr("工步")