Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RecordSourceType
Message
From
17/01/2003 08:17:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/01/2003 06:25:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00742800
Message ID:
00742817
Views:
18
>I wish to populate a grid with either a table or SQL depending upon a user selection. I have added the necessary code into the "init" event of the grid:
>
>for table data grid.recordsourcetype = 0
>for SQL data grid.recordsourcetype = 4
>
>On the properties of the grid I have selected 0 (table)
>
>However, The grid always defaults to 0 Table.
>
>My question:
>
>Does the setting in the properties always overide teh settings in the code?
>
>Thanks
>
>Brendan

No. First set type then recordsource. If selection is on same form grid would bind itself to first alias it finds if no recordsource is given.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform