Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide grid column
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00989465
Message ID:
00989707
Views:
53
This message has been marked as the solution to the initial question of the thread.
>The problem with setting the column width to 0 is that the user still can move the cursor onto those columns.
>
>I solve my problem in another way. i added a second datagrid to show subtotals, and will update the cursor in the afterrowcolchange event.
>
>Thanks anyway...

Wilson,

I know you solved the problem in another way, but you could've just disabled the column when it's width is 0, that would've taken care of moving the cursor onto them.

Something like:
with thisform.grdCourses.column3
	.width = Iif(.width=0, 75, 0)
	.enabled = .width > 0
endwith
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Reply
Map
View

Click here to load this message in the networking platform