Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids 101
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00846808
Message ID:
00846822
Views:
39
Yes, but as Chuck, it only worked if I created the cursor in the LOAD.

However, instead of a blank grid I get a grid with columns and headers, like in a browse, but NO DATA!

??????

>Set the grid's rowsource = curs_matrix after the cursor is created and populated.
>
>Einar
>>Hi All:
>>
>>I've started dabbling with a grid and I just need some help to get me up to speed.
>>
>>I want a simple form that'll create a cursor of filenames, populate a grid with the list and have the user click a check box in the grid next to any filename he wants to do an action on (the action itself is not important here, probably).
>>
>>So I created a form, dropped a grid with the followng attributes:
>>
>>
>>
>>recordtype=alias (I also tried 'table')
>>recordsource = CURS_MATRIX
>>
>>
>>I then set up two methods in the form
>>
>>

>>INIT
>>DODEFAULT()
>>thisform.CreateMatrixCursor()
>>thisform.grdMatrix.Refresh()
>>
>>CREATEMATRIXCURSOR
>>ADIR(laMatrix,'c:\agri\poult\excel spreadsheets\agri????.xls')
>>
>>CREATE CURSOR CURS_MATRIX (cu_fname c (15))
>>
>>APPEND FROM ARRAY laMatrix
>>
>>ALTER table CURS_MATRIX ADD cu_lupd L
>><\pre>
>>
>>Nothing appears in the grid!
>>
>>I'm probably doing something real stupid, but if I don't ask, I won't know.
>>
>>Thanks a lot.
>>
>>Yossi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform