Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL - GRID Formatting
Message
 
 
À
21/11/2011 11:12:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01529399
Message ID:
01529402
Vues:
44
>I am creating an application utilizing a connection string to a SQL Database. How can I manipulate the order of the fields from the SQL table into a Grid? Everything I try, I get the exact order of the fields from the SQL table in the grid.
>
>I have even tried hardcoding the format I want after the I perform the cursorfill() command.
>
>thisform._grid1.column1.hEADER1.Caption="Report #"
>thisform._grid1.column1.text1.ControlSource="OCA"
>thisform._grid1.column1.AutoFit
>
>Thanks much in advance

You need to set each column's controlsource to the correct AliasName.FieldName. You can do it in design time (and adjust all headers) or in run-time (form's Init).
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform