Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid & Memo and other problems...
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00227549
Message ID:
00228112
Views:
22
> Actually, I saw your answer yesterday:
> IIF(table.logicalfield,'Y','N') for ControlSource, but this code doesn't work for ControlSource. I need to know for which property of the grid I need to put this code. I tried this.column(i).text1.text - unsuccessfully, this.column(i).text - same result. Could you please tell me where I need to put this code?

The column.controlsource is the correct place for it. If the column is readonly, it will work, I guarantee it :)

>And I am not pretty confident that I can use this code either, because I want to show Y/N for all my grid rows, so I am afraid I can not put this code into Init method, I need to put it in AfterRowColChange - so, loop for all my columns, it becames more complex... May be I need to forget this idea at all...

It's really quite simple, you can do it in the init, but you may want to forget trying to use a loop to assign controlsources, just assign them line by line, if it gets too tricky. Or maybe you can condition it on "logical" type in the loop? Anyway, you can try the basic idea in a little test grid and see that it works, to give you confidence :)
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform