Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Omitting Columns from a Grid using Cursors
Message
De
19/08/2003 03:41:30
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00821288
Message ID:
00821290
Vues:
14
>I have a grid were the recordsource is a cursor. There are 5 columns in the cursor.
>I do not want to show columns 2 and 3 in the grid. Is there anyway I can omit these columns from my grid display?
>
>Many Thanks

Hi Neil Lewis

there are many ways to do this

exp
u can set the grid controlsource...

thisform.grid1.columncount = -1
with thisform.grid1
.columncount = 3
.controlsource = 'mycursor'
.column1.controlsource = 'mycursor.field1'
.column1.header1.caption = 'Field1'
.column1.width=100
.column2.controlsource = 'mycursor.field2'
.column2.header1.caption = 'Field2'
.column2.controlsource = 'mycursor.field3'
.column2.header1.caption = 'Field3'
endwith


or u can use removeobject
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform