Solved

Binding Seridan SSDBGrid to ADO Recordset

Posted on 2001-06-05
10
878 Views
Last Modified: 2010-05-18
Can Anyone suggest a way to bind Seridan SSDBGrid (part of Seridan Data Widgets 3) directly to ADODB.Recordset bypassing any data controls, please?
0
Comment
Question by:tbbrhun
10 Comments
 
LVL 1

Expert Comment

by:viperlin
ID: 6157771
if you want to BIND it, then of course you'll use a data control.

if you don't want to bind it you can use ado.
0
 

Author Comment

by:tbbrhun
ID: 6158106
With MS Dbgrid, it's possible to to bind the grid directly to ado recordset. I was also told that it might be possible to do it with other grids (?using ICursor object or other techniques?). That's what I'm looking for.

Thanks!
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6158245
You might need to update your control. Not all controls accept ADO recordset as source.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Expert Comment

by:Valliappan AN
ID: 6158498
You could go for Sheridan OLEDB grids, instead of Sheridan DB Grids. They support ADO.
0
 
LVL 4

Expert Comment

by:vindevogel
ID: 6159083
Use a DataControl anyway.

Just put it on the form, don't specify anything.
Then link the Sheridan Grid to the datacontrol

In code you can open your ado recordset, with all the possibilities from ado

The last line should be then
  Set DataControl.Recordset = YourADORecordset

This automatically populates the grid ...


This may not be what you want, but it gives you the best of both worlds.
0
 

Author Comment

by:tbbrhun
ID: 6159979
I'm going to explore both options in the next couple of hours, but I'm rather inclined to use a more advanced grid than use a Data control anyway. On the other hand I wonder if it's possible to cast ADO recordset into something like an object exposed by the data control?
0
 
LVL 4

Expert Comment

by:vindevogel
ID: 6160302
>> On the other hand I wonder if it's possible to cast ADO
recordset into something like an object exposed by the data control?

Try it out ... works fine with ADO Datacontrol and ADO Sheridan Grid, worked fine with DAO and old style Sheridan.

The Datacontrol is a set of references towards other objects.  The datacontrol.recordset is nothing more than what you would call a "pointer" in C.
0
 
LVL 4

Accepted Solution

by:
vindevogel earned 50 total points
ID: 6160310
You can not link the Recordset of the non-OLEDB Sheridan to a ADO Datacontrol, and visa versa .....  They are not the same.  The normal VB Datacontrol expects a DAO Recordset, you should of course use the ADO Datacontrol if you're using the OLEDB version of Sheridan.
0
 

Author Comment

by:tbbrhun
ID: 6179230
Many Thanks!!! I'll go with the data control as a temp solution  meanwhile looking for other options
0
 
LVL 4

Expert Comment

by:vindevogel
ID: 6179283
thanks for the points
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

756 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