Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid doesn't display data
Message
From
17/06/2019 15:25:41
 
 
To
17/06/2019 15:02:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01669110
Message ID:
01669120
Views:
60
Then, set a breakpoint and step through the code. And make sure that the cursor exists all the time, since I'm willing to bet that it "disappears" somewhere in your program.

>Yessir, yessir. 4 records full. It's why I picked that particular person to test with.
>
>>Are you absolutely sure that the cursor does exist when you set the grid's properties? Add a simple Browse to test.
>>
>>>Doesn't matter if I am or not, it's not showing from the first creation of the cursor
>>>
>>>>Do you recreate the cursor? Look here: http://fox.wikis.com/wc.dll?Wiki~GridSafeSelect
>>>>
>>>>>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
Reply
Map
View

Click here to load this message in the networking platform