• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 145
  • Last Modified:

database programming with visualbasic

i had made an application using dataenvironment and datagrid control. I modifies the table using datagrid control. To rollback and commit these modifications i have put commandbuttons.
It works also. But the problem is that when i rollback the data it does not display rollbacked data in datagrid control. But when i close the application and again run it, it displays rollbacked data in datagrid control. So how i can display the rollbacked data in datagrid control without closing and again running the application ?
0
shabdar
Asked:
shabdar
1 Solution
 
BillyAbbottCommented:
i dont; have vb here so i can;t check this, but i think if you do a grid.refresh it should relook at the underlying data and do an update. i think there is also a property of the grid control that you can set which will automatically detect changes in the underlying data.
0
 
TigerZhaoCommented:
Easy Way! After rollback, use:
DataGrid1.ReBind
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now