vb net table adapter 更新数据库后怎么样刷新datagridview
数据库更新怎么样刷新datagridview用了refresh无效重新绑定datagridview的数据源也无效TryMe.Validate()StockitemBind...
数据库更新怎么样刷新datagridview
用了refresh无效
重新绑定datagridview 的数据源也无效
Try
Me.Validate()
StockitemBindingSource.EndEdit()
StockitemTableAdapter.Update(DatabaseDataSet.stockitem)
MsgBox("Update successful", +48, "successful")
Catch ex As Exception
MsgBox("Update failed")
End Try 展开
用了refresh无效
重新绑定datagridview 的数据源也无效
Try
Me.Validate()
StockitemBindingSource.EndEdit()
StockitemTableAdapter.Update(DatabaseDataSet.stockitem)
MsgBox("Update successful", +48, "successful")
Catch ex As Exception
MsgBox("Update failed")
End Try 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询