Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid doesn't display data
Message
From
17/06/2019 17:03:39
 
 
To
17/06/2019 12:37:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01669110
Message ID:
01669129
Views:
55
Only dim memory, as I seldom did front end, but in Controlsource I think I had only pure field names, as record source was set in the parent container.
Probably both work, but checking is cheap...
Also I shun "With" - I sometimes create an explicit local pointer var if typing gets uglyor resolve paths get too long.

HTH

thomas

>Perhaps I've been .Net'ing too much, but I can't seem to get a Grid to display the data that it should be showing.
>
>Data exists in a cursor 'PersonClass'
>Grid sits on the 2nd page of a pageframe
>
>In the GetInfo method of the form I have:
>
>WITH thisform.pfCSO.pgEDU.grdLookup
>  .RecordSource = 'PersonClass'
>  .RecordSourceType = 1
>  .Visible = .t.
>  .ColumnCount = 3
>  .column1.header1.Caption = 'ClassName'
>  .column1.controlsource = 'PersonClass.ClassName'
>  .column1.width = 300
>  .column2.header1.Caption = 'ClassDate'
>  .column2.controlsource = 'PersonClass.ClassDate'
>  .column2.width = 100
>  .column3.header1.Caption = 'Result'
>  .column3.controlsource = 'PersonClass.ClassGrade'
>  .column3.width = 100
>ENDWITH
>
>
>So, what have I forgotten?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform