Hello,
I have tried enumerable solutions posted on the web and still can't solve my problem.
I am using MS DataGrid Control 6.0 (SP5; msdatgrd.ocx) with an ADO recordset and setting the datasource in code. My database is IBM DB2 for Windows (version 7.1).
When the ADO recordset is opened with the following options,
.CursorLocation = adUseClient
.CursorType = adOpenStatic
.LockType = adLockOptimistic
Although new records save correctly, I can not seem to get the grid to successfully cancel an addnew.
If I change the lock type to adLockBatchOptimistic the addnew cancels just fine, but new records do not save.
Any suggestions would be appreciated.
I have tried enumerable solutions posted on the web and still can't solve my problem.
I am using MS DataGrid Control 6.0 (SP5; msdatgrd.ocx) with an ADO recordset and setting the datasource in code. My database is IBM DB2 for Windows (version 7.1).
When the ADO recordset is opened with the following options,
.CursorLocation = adUseClient
.CursorType = adOpenStatic
.LockType = adLockOptimistic
Although new records save correctly, I can not seem to get the grid to successfully cancel an addnew.
If I change the lock type to adLockBatchOptimistic the addnew cancels just fine, but new records do not save.
Any suggestions would be appreciated.