Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Omitting Columns from a Grid using Cursors
Message
From
19/08/2003 03:41:30
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00821288
Message ID:
00821290
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform