guillermo88
Programmer
Help with Grid class and tables
-I have a grid class, mygrid.
-I using addobject("oGrid","myGrid"
in the load event of the form
Problem was that grid was being loaded with info of the first table
in DE.
I fixed this by adding the following in the init event of the DE:
thisform.oGrid.recordSource=""
BUT still loads the headers of the grid with info of the table.
Before I had a grid created at design time within the form and placing:
thisform.oGrid.recordSource="" in the init event of DE the problem
of loading the table was fixed
But I want to use this generic grid so I can reuse in different
forms.
How can fix this unwanted behavior?
Thanks
-I have a grid class, mygrid.
-I using addobject("oGrid","myGrid"
Problem was that grid was being loaded with info of the first table
in DE.
I fixed this by adding the following in the init event of the DE:
thisform.oGrid.recordSource=""
BUT still loads the headers of the grid with info of the table.
Before I had a grid created at design time within the form and placing:
thisform.oGrid.recordSource="" in the init event of DE the problem
of loading the table was fixed
But I want to use this generic grid so I can reuse in different
forms.
How can fix this unwanted behavior?
Thanks