Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting a grid to read-only
Message
From
06/03/1998 14:31:24
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00080620
Message ID:
00083100
Views:
32
>>I had to do something similar with a grid that scrolled horizontilly. I wanted the user to see the data but not change so must have grid.Enabled=.T. Grid.SetAll(ReadOnly)=.T. wouldn't work on everything, especially comboboxes. I ended up setting each controls ReadOnly property to .F. individually. A pain, but the only way I could get it to go. HTH
>
>Colin,Terry:
>
>I found a simple way to do what I was looking for.
>
>thisform.grid1.setall('enabled',.F.,'column')
>
>It is really just a modification of what each of you said. There doesn't seem to be any need to leave one of the columns enabled.
>
>Just to let you guys know. :-)

with thisform.thisgrid
For i = 1 to .columncount
.columns[i],enabled = .T.
next i
endwith

Helpful?
Robin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform