修改方本框内容,反是映到网格里,怎么老是报错,怎么解决?
Try '修改后更新网格
Dim myrow As DataRow = Me.dtemailhead.Rows(Me.MybinddtDtl.Position)
With myrow
.Item("hnid") = dtgshow.Item(dtgshow.CurrentRowIndex, 0)
.Item("content") = Me.txtcontent.Text.Trim()
.Item("dept") = Me.cbxdept.Text.Trim()
.Item("createdate") = App.SQLDB.GetSysDate
.Item("createcode") = App.UserInfo.UserCode
End With
Catch ER As Exception
MessageBox.Show(ER.Message, ER.Source)
End Try
提示未引用到对象实例。 Private MybinddtDtl As BindingManagerBase
出错就在这里,我只是定义了,怎么做才可以,修改网格里数据通过文本框。
问题点数:20、回复次数:1Top
1 楼renyu732(Sysinfo)回复于 2005-07-01 23:40:51 得分 20
先判断有没有数据再绑定嘛!Top




