- Beginner - OLE DB - bind to grid control
- Posted by poptgab on August 5th, 2004
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 - I suppose . Could someone help me?
Gabi
Similar Posts
- TCP/IP fails to bind to card (Networking) by poul0004
- How do we make WM05 always bind IP:s to our NIC? (Drivers) by hp_briegel
- Raptor v7 + Solaris + Bind (Computer Security) by Frank Hofmann
- Really in a bind, request help... (Printers) by IrvG
- won't bind (Modems) by Plotinus8671

