?
Solved

Blank DataGrid!

Posted on 2003-03-11
8
Medium Priority
?
478 Views
Last Modified: 2012-05-04
My OLEDB Provider is Microsoft.Jet.OLEDB.4.0.
The DataGrid control appears totally blank for the following recordset setting:
    With rs
        .CursorLocation = adUseServer
        .CursorType = adOpenKeyset
        .LockType = adLockOptimistic
    End with
And for this:
    With rs
        .CursorLocation = adUseServer
        .CursorType = adOpenDynamic
        .LockType = adLockOptimistic
     End With
the error message is :"The rowset is not bookmarkable.".
But for client-side cursor,DataGrid displays all the records.What's the problem?
0
Comment
Question by:EXwithRaj
7 Comments
 
LVL 71

Accepted Solution

by:
Éric Moreau earned 80 total points
ID: 8110368
The DataGrid needs to have access to the complete recordset before displaying it. That's why you need to use a Client side cursor.
0
 

Author Comment

by:EXwithRaj
ID: 8126981
emoreau,why is it not possible for the DataGrid to have access to the complete recordset with a server-side cursor?Mind explaining?And what about other bound-controls,why no such problem occurs in them?
0
 
LVL 71

Expert Comment

by:Éric Moreau
ID: 8126997
The DataGrid needs a Client-Sided cursor. Other controls normally display one record at a time so they don't have problems.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 

Expert Comment

by:CleanupPing
ID: 9056455
EXwithRaj:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 71

Expert Comment

by:Éric Moreau
ID: 9060449
My recommandation: accept emoreau's comment
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 9097036
Moderator, my recommended disposition is:

    Accept emoreau's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer
0
 

Author Comment

by:EXwithRaj
ID: 9274621
emoreau's answer is half-baked & I can't accept it.Please refund my points.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

599 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question