Information générale
Titre:
Setting the TableStyles collection
I am using C# to query a VFP table.
I have a form with a DataGrid. The Query works and the data is displayed in the grid.
The problem I am having is that I can't set the TableStyles collection properly.
Here's what I do:
-Click on the TableStyles ...
-Add a name MyGrid
-MappingName = MyDataSetObject
-Click on the GridColumnStyles ...
-Add 2 members named Company and Name
-The MappingName for each are the table field names COMPANY and CONTACT
However, when I run the form and query, the grid is filled with all the columns from the table instead of the 2 I selected.
What I am missing?
Thanks,
Jerryt
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement