connection bd avec un ActiveX du type VSFlexGrid |
Sujet: connection bd avec un ActiveX du type VSFlexGrid par Anonyme sur 7/4/2004 9:37:07 Bonjour, J'ai téléchargé VSFlexGrid (de componentOne) qui est un activeX. Celui-ci est un champ tableau assez évolué. Le problème est de se connecter à une base de donnée avec. Mon projet fonctionne avec une base de donnée MySQL. Avec l'activeX ,il faut se connecter via OLEDB ODBC. Ca c'est possible. Mais le problème c'est lorsque que l'on veut configurer la connexion de l'activeX. Voici l'extrait de l'aide pour la connexion (un peu brève). [form!]VSFlexGrid.DataSource[ = DataSource ] On remplace par : ActiveX1>>DataSource= ? Remarks This property behaves differently in the ADO and DAO versions of the VSFlexGrid control. OLEDB/ADO version (VSFLEX8.OCX) The DataSource parameter is a reference to an object that qualifies as a data source, including ADO Recordset objects and classes or user controls defined as data sources. You may set the DataSource property at design time using the property window. When you select the DataSource property, you will get a drop-down list enumerating the sources available. These include sources defined with Visual Basic's Data Environment as well as any controls defined as data sources, such as the Microsoft ADO data control. You may also set the DataSource property at runtime using the Visual Basic Set statement, as shown below: ' ADODC1 is a Microsoft ADO Data control Set fg.DataSource = ADODC1 Est ce que quelqu'un connait la solution ? |