DataGrid Control 如何梆定数据源?
。。。。。。。。。。。。。
if (pRecordset->GetadoEOF ())
return false;
m_ctlDataGrid.SetRefDataSource (NULL);
//下面出错!提示:the rowset is not bookmarkable.
m_ctlDataGrid.SetRefDataSource ((LPUNKNOWN)pRecordset);
m_ctlDataGrid.Refresh ();
//add the recordset to the DataGrid Control and show them in the dialog
//
pRecordset->Close ();
pConn->Close();
请问如何处理??