Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Re: Grids
Miscellaneous
Thread ID:
00384318
Message ID:
00384484
Views:
52
>I tried that and it works, but after I switch to another page frame to and back to this one then i refresh it with thisform.grid1.recordsource = thisform.grid1.recordsource it shows the the D or R data that is in my field? instead of the approved disapproved that my iif statement in the controlsource.
>
>Thanks Kelly

And this is the correct behaviour, because what you did - you reset the grid recordsource and therefore the column.controlsource to just the field name (actually it could be even some other field in the default field order). You have to reset the column.controlsource = IIF(...) again. Better not to use resetting the grid.recordsource in order to refresh the grid - use grid.refresh() as it supposed to be.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform