Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird Grid problem
Message
From
31/12/1998 15:01:58
 
 
To
31/12/1998 14:56:19
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00171925
Message ID:
00171995
Views:
33
>>Hi all. It's new year and I still coding.
>>Something amazing is happennig here: I have a Grid, wich first column is a combobox, and the second is another combo. I'm using the value of the firs combo to decide if allow or not the user enter in the second combi (ie if this.parent.parent.combo1.value=something return .f., in the when event of my second combo).
>>
>>The problem is that the value I test (this.parent.parent.combo1.value) always shows the value of the FIRST row of my grid, no matter wich row currently I am. Even if I switch to another colum, in another row, the value in the this.parent.parent.combo1.value property is always the value in the first row of the grid. I have checked this in the afterowcolchange event, giving me the same result.
>>
>>Please, help me to have a happy new year (BTW, happy new year to everybody!)
>
>I think you'd be better off to look at the underlying data to determine if you can enter into that grid.

After reading the rest of the answers, I feel sufficiently stupid now. Why don't you setup a Dynamic control source? The text box has a when false. Use the value of the underlying data to determine which control source to use.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform