>I current testing the grid and I not sure how to solve this problem. I have a grid and I want the RecordSource of Grid1 to be an array ( Eg. 5X5 Dimension arrays < 5 rows and 5 columns > ). How could I store and update the array inside the grid? and Where do I initialize the array?
It`s a little bit tricky, but we have done it. First, the grid needs a file to work with, so CREATE CURSOR DUMMY (SOMETHING C(1)), APPEND 5 records to it, and set the Grid.RecordSource to DUMMY. Set all the columns BOUND property to .F., and set the first column.textbox.ControlSource to MYARRAY(RECNO(),1); the second, to MYARRAY(RECNO(),2), and so on.
You are done!
PS. Why set BOUND to .F.? If you don´t, the textboxes will become ReadOnly no matter what you do.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only