Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing RecordSource of grid on the fly breaks formatti
Message
From
17/05/2008 02:44:54
Neil Mc Donald
Cencom Systems P/L
The Sun, Australia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01317811
Message ID:
01317813
Views:
12
Hi,
Set the recordsource and controlsource to "", do the SQL then reset the recordsource and controlsource, like below
.RECORDSOURCE = ""
.RECORDSOURCETYPE = 1
.column1.CONTROLSOURCE = ""
.....
select .....
.RECORDSOURCE = "your record source"
.RECORDSOURCETYPE = your type
.column1.CONTROLSOURCE = "your control source"
.....
>Hi all
>That's a classic grid recordsource question, and i know i have this fixed somewhere, but i gave up finding the code...
>I need to set a cursor as recordsource of a grid. The grid is formatted ( different backcolors for columns, bold font in some places etc... ).
>If i run:
>select .... into cursor myCursor
>thisform.myGrid.RecordSource="myCursor"
>the grid looses all the formatting. Also, should i set each column's controlsource everytime i recreate the cursor?
>
>Thanks
>Jaime
Regards N Mc Donald
Previous
Reply
Map
View

Click here to load this message in the networking platform