ActiveX  中的Microsoft  ADO  Data  Control,  version  6.0  (OLEDB)控件要在程序运行后再动态指定数据源并在Microsoft  DataGrid  Control,  Version  6.0  (OLEDB)控件上显示出数据记录,数据源是事先建立的,运行后是选,选到那个就显示那个.  
就是这样请问如何做.  
请各位大哥哥大姐帮帮忙.谢了.

解决方案 »

  1.   

    229029 - SAMPLE: AdoDataGrid.exe Demonstrates How to Use ADO with ...
    The AdoDataGrid sample demonstrates the various uses and combinations of ADO objects, and shows
    how to use the ADO Recordset object to populate the Microsoft DataGrid control, which makes presenting
    data through ADO very easy in Visual C++. The sample... Comments? ... AdoDataGrid.exe. ... 
    support.microsoft.com/?kbid=229029&sd=msdn
      

  2.   

    SQLConfigDataSource这个看看对你的要求有没有帮助
    具体的你查查MSDN
      

  3.   

    还是有一点点错.我用的window2000
    加载#import "C:\Program Files\Common Files\System\Ole DB\msdasc.dll" rename_namespace("dl26")
    时也错