事件值在DataTable BOND到DataGridView中更改
我在数据库中的数据集中有数据库中的数据集,绑定到数据杂志。如果数据更改,我想显示状态。因此,我将DataGridView的CellValueChanged事件用作触发。如果例程,我会检查使用数据集中数据集中的更改。但这是早期的,我当时尚未更新DataTaTable。从第二个更改中起作用。更新数据表后还有另一个事件吗?
I have DataTables in a DataSet in a data base bound to a DataGridView. I'd like to show a status if the data changed. So I used the CellValueChanged event of the DataGridView as trigger. In the event routine I check for changes in the DataSet with DataSet.HasChanges if there was really a change. But that is to early, I asume the DataGridView didn't updated the DataTable at that time. From the 2nd change on it works. Is there another event which is fired after updating the data table?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用,进行更改,按 tab 或 enter 获取原始和建议的值。在下面的示例中,我们首先订阅DataTable ColumnChanged事件
,在这种情况下,显示为Visual Studio Output窗口的值
或成为选择性
Using DataTable.ColumnChanged Event, make a change, press TAB or ENTER to get original and proposed value. In the following example we first subscribe to the DataTable ColumnChanged event
Then, in this case show values to Visual Studio output window
Or be selective