Information générale
Catégorie:
Codage, syntaxe et commandes
>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
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