Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid control
Message
From
17/03/2005 06:36:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/03/2005 06:33:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00996622
Message ID:
00996688
Views:
17
>>>Hi all,
>>>
>>>I use a grid called course in one of my forms where I set all the properties of my grid.
>>>
>>>I modify my table called tblPRDET in my form and reset the grid recordSource to the table name. Each time I do this I lose all the previously set properties of my grid.
>>>
>>>Any ideas why this happens?
>>>
>>>THISFORM.pgf1.page2.grdCourse.RecordSourceType = 1
>>>THISFORM.pgf1.page2.grdCourse.RecordSource = "tblPRDET"
>>>THISFORM.pgf1.page2.grdCourse.Enabled = .T.
>>
>>If the format of grid doesn't need any change:
>>
>>with THISFORM.pgf1.page2.grdCourse
>>  .RecordSource = ""
>>  * Do modifications
>>  .RecordSource = "tblPRDET"
>>endwith
>>
Cetin
>
>Cetin, probably you known,
>but on VFP9 the grid class is gotten worse.
>Help doc:
>
>Grids and RecordSource and ControlSource Properties
>In Visual FoxPro 9.0 there is a change in Grid control behavior.
>When the RecordSource property for a Grid control is set,
>Visual FoxPro 9.0 resets all ControlSource
>properties to the empty string ("") for all columns.
>In earlier versions of Visual FoxPro,
>the ControlSource properties were not properly reset,
>so problems could occur when a RecordSource with a different structure was later bound.
>This change may impact scenarios involving Access and Assign methods or BINDEVENT( )
> function calls made against a Grid column's ControlSource property.
>
>
>Fabio

No I don't know. Haven't seen VFP9 yet. Thanks for info.
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