Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TrueDBGrid ISSUE...PLEASE

Status
Not open for further replies.

DaRetina

Programmer
Sep 22, 2001
15
0
0
JO
Hi..
I use TrueDBGrid Pro 7 build 282
VB 6 .. SP5
I am populating my DBGRID using a RecordSet that has the following settings:

GrdRs.CursorType = adOpenStatic
GrdRs.CursorLocation = adUseClient
GrdRs.LockType = adLockOptimistic
GrdRs.Open
Me.grd.DataSource = GrdRs
The grid retrives the recordset correctly..I can NAVIGATE smoothly..
I am using a MODIFY button..that sets the EditActive propert of th grid to true..
Then JUST WHEN I LEAVE THE CURRENT CELL..EITHER BY MOUSE OR KEYBOARD..I GET AN ILLEGAL OPERATION ERROR IN OLEDB32.DLL
What is happenening?..
OH...IF I CLICK ON A COUMN HEADER before I CLICK into the other cells or press an arrow key on the keyboard IT NAVIGATES WITHOUT ANY ERROR..but it doesnt ALLOW ME TO EDIT..
Please HELPPPPP..
THANKS IN ADVANCE>.
 
The error takes place when I make the editactive = true and allowupdate = true..AFTERWARDS..IF I move the foucs to another cell the error happens...BUT IF I move the focus to another control on the form then BACK to the cells they go ok!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top