Bonjour,
Je souhaite utiliser AdvDBGrid avec MySQL.
Le manuel de TMS mentionne la simplicité d'affichage mais cela ne me renvoie rien.
"Drop a TDataSource on the form and connect it to a TDataSet of choice. (j'ai choisi TClientDataSet)
Activate the dataset and connect the TDataSource to TDBAdvGrid.
With the default setting of TDBAdvGrid.AutoCreateColumns as true, the grid will automatically create TDBGridColumnItem instances for every DB field in the dataset and add it to the Columns collection.
The TDBGridColumnItem.FieldName will be initialized with the fieldnames found in the dataset Fields collection.
When TDBAdvGrid.AutoRemoveColumns is set to true, deactivating the dataset will automatically remove all columns from the grid"
J'ai fait tout ça mais rien ne se passe
Finalement la bonne vielle méthode fonctionne, à savoir de remplir une stringGrid à l'aide d'une requête SQL
J'aurais voulu simplifier, mais si qq peux m'aider??? (quels compo et quels settings - j'oublie peut-être simplement de cocher une option???)
Merci pour votre aide
PhilLu
Partager