Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid does not display all the fields
Message
From
08/10/2004 16:14:16
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Grid does not display all the fields
Miscellaneous
Thread ID:
00950054
Message ID:
00950054
Views:
56
On my form, I have a grid with ColumnCount = -1. In the Init of the form, I have the following code:
THIS.grdBrowse.RecordSource = THIS.cTable
When the form open, the grid display the table contents, but only the first 8 fields. How come?

Update: I'm still interested to know why only the first 8 fields are displayed, but for the record I found a workaround:
lnFieldsCnt = AFIELDS (laFields)

WITH THIS.grdBrowse
   .ColumnCount = lnFieldsCnt
   .RecordSource = "MyTable"
	
   FOR I = 1 TO lnFieldsCnt
      .Columns (I).Header1.Caption = laFields [I, 1]
   ENDFOR
ENDWITH
Next
Reply
Map
View

Click here to load this message in the networking platform