DataGridView编辑的记录未在表中更新 [英] DataGridView Edited Records not Updating in Table

查看:72
本文介绍了DataGridView编辑的记录未在表中更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我创建了一个临时表,通过查询向其中插入了记录,并在datagridview中显示了插入的记录.从临时表中,我在datagridview中编辑的量(更改为500)的值仍然是旧值(280).我该怎么办?

在VFP中,一旦修改了列及其网格,表格就会自动更新.我该如何在vb中执行此操作?

Hi,

I created a temp table, inserted records to it via query, displays the inserted records in a datagridview.. I made all of the DataGridview''s columns readonly to True except the Amount column that can be edited, but when i save the records from the temp table, the value of the amount i edited(change to 500) in the datagridview, was still the old value(280).. what do i do?

In VFP, once you modified a column it its grid... the table is automatically updated. how can i do it in vb?

推荐答案

亲爱的
将网格视图的enableViewstate设置为false后,尝试更新该值.可能会对您有所帮助.
Dear
Try to update the value after making enableViewstate false of the grid view. It may help you.


这篇关于DataGridView编辑的记录未在表中更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆