Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid
Message
From
19/03/2005 15:54:18
 
 
To
19/03/2005 15:15:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Grid
Environment versions
Visual FoxPro:
VFP 5
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00997627
Message ID:
00997632
Views:
17
hi,
thank you,
ok at vfp8
where i can but the code at form level or grid level..
and how
thisform.Grid1.LockColumns [ =1,2 ]&& i want to freezing column1 and 2

about vfp6 code ,can i use it via vfp5.
thanks.


>Hi
>
>** in vfp8 this is the command in int()
>thisform.Grid1.LockColumns [ = nValue ]
>
>** in vfp 6
>To lock one column in a grid. Put this code into AfterRowColumn and scrolled properties.
>local i
>if this.columns(1).ColumnOrder < this.LeftColumn
> && we scroll forward
> for i=this.columns(1).ColumnOrder to this.LeftColumn-1
> this.columns(1).ColumnOrder = this.columns(1).ColumnOrder + 1
> endfor
>else
> && we scroll backward
> for i=this.LeftColumn+1 to this.columns(1).ColumnOrder
> this.columns(1).ColumnOrder = this.columns(1).ColumnOrder - 1
> endfor
>endif
>
>Shafid
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform