I have an outstanding issue with a DGV which I said was resolved in a previous thread, which turned out not to be. The issue is this:
I have a DGV in which the virtual mode is set to true as I do my own data management. The problem I am getting is when I have added a new row to the data grid and saved it successfully, and then try to list another set of data I get an error as shown. If I edit a cell anywhere in the datagrid and save it, I can list another set of data successfully. Ignore blank cells as this does not cause any problems.
The value in the combo box is added to a hidden cell in the datagrid when a new row has been added. I have 2 SQL statements for the dataadapter, one to list the data and one for saving. I have also provided the code with this problem. Can anyone provide with a solution with or without the vitual mode set to true as I will have similar types of layouts in other parts of the application.
Computerman![]()





Reply With Quote