Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids.. Blah
Message
From
17/11/1998 11:24:58
 
 
To
17/11/1998 11:19:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00158261
Message ID:
00158286
Views:
18
>>>I have a problem with a grid. I only want the user to be able to click on one column of the grid, but see 3 columns. As it is now, I have 2 columns disabled, and the controls in those columns, and vice versa for the other column. Even when I disable the column, the use can still click on that column and take focus away from the one I want them to be on. Any ideas how I can do this? TIA
>>
>>This example is too simple. You may keep Grid.LastActiveColumn object to provide SetFocus to needed column.
>>***Column.Control.GotFocus event
>>this.parent.parent.column1.setfocus
>>nodefault
>
>I tried that.. enabling the column and control in it.
>when I use
>***thisform.grid1.column3.gotfocus
>thisform.grid1.cloumn2.check1.setfocus()
>nodefault
>
>This makes the control lose focus but the column doesn't
>whether or not the column and control are disabled or not the column keeps the focus. BTW using VFP 6 if it matters.

Sorry, I don't understand what you said (probably typos). Could you repeat: is column2 getting focus or not? It was tested, and works Ok on my machine (VFP5).
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform