If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Bind an OLE DB rowset to a data grid

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-02-04, 04:04
poptcat poptcat is offline
Registered User
 
Join Date: Jul 2004
Posts: 2
Bind an OLE DB rowset to a data grid

Hi. I try to connect to a Microsoft SQL database using Ole Db - IRowSet interface. This works, but I can't bind it to a grid control (I use Microsoft Datagrid control).
I have:
IRowset* pRowset;
DDX_Control(pDX, IDC_DATAGRID1, m_grid);
........................................
I try to bind by
m_grid.SetRefDataSource((LPUNKNOWN)pRowset);
but it raises an exception : Type mismatch.
Well, I tried... Could someone help me?
Gabi

Last edited by poptcat; 08-02-04 at 04:23. Reason: to receive replies as emails
Reply With Quote
  #2 (permalink)  
Old 08-03-04, 03:36
deviant69 deviant69 is offline
Registered User
 
Join Date: Jun 2004
Location: Deutschland
Posts: 10
i dont work with Ole DB, but you can take a look at
HTML Code:
http://www.codeproject.com/database/#OLE+DB
they have lots of examples, and perhaps, you find what you need...

deviant69
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On