Dim aa As String = dgrItem.DataKeys(dgrItem.Items(i).ItemIndex)
Dim dr As DataRow = ds1.Tables(0).Rows.Find(aa)
出错提示:
System.Data.MissingPrimaryKeyException: 表没有主键
我的表是有主键的呀
...全文
744打赏收藏
这是为什么呢?
Dim aa As String = dgrItem.DataKeys(dgrItem.Items(i).ItemIndex) Dim dr As DataRow = ds1.Tables(0).Rows.Find(aa) 出错提示: System.Data.MissingPrimaryKeyException: 表没有主键 我的表是有主键的呀