Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid does not display all the fields
Message
 
 
To
08/10/2004 16:14:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00950054
Message ID:
00950109
Views:
17
This message has been marked as the solution to the initial question of the thread.
Sylvain,

Try
WITH THIS.grdBrowse
   .ColumnCount = -1
   .RecordSource = "MyTable"
...
>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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform