General information
Category:
Forms & Form designer
Title:
Preserving Grid Properties: Arnon is smart
I think that Arnon recommended this several weeks ago, but I tried it today and was pleased. If you are having trouble with your grid maintaining all of its properties whenever you change its recordsource or regenerate the table/cursor upon which it is based, consider subclassing the grid and storing it in a VCX. Then,
ThisForm.RemoveObject("the grid object name")
Regenerate the underlying table any way you want.
Thisform.Addobject("same grid object name","grid class name")
grid.visible=.t.
This works well. Too bad there isn't a built-in capability like:
Grid.Connected=.F. && puts grid in Limbo
Rengerate underlying table
Grid.Connected=.T. && Takes grid out of Limbo
Next
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