Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lock or freeze the first 2 columns
Message
From
07/04/2005 04:08:22
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Lock or freeze the first 2 columns
Environment versions
Visual FoxPro:
VFP 5
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01002175
Message ID:
01002175
Views:
85
hi all,
i try to lock or freeze the first 2 columns at mygrid,via this code under
only the first column is lock,any idea .
thanks
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
** next column line
for i=this.columns(2).ColumnOrder to this.LeftColumn-1
this.columns(2).ColumnOrder = this.columns(2).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
*** next column lock 
for i=this.LeftColumn+1 to this.columns(2).ColumnOrder
this.columns(2).ColumnOrder = this.columns(2).ColumnOrder - 1
endfor

endif
Next
Reply
Map
View

Click here to load this message in the networking platform