08-19-2019, 04:24 PM
Hi Alexandre,
I have tried almost everything possible to adjust, without much luck. Among those, also the anchors. But after I placed the Grid on (or inside) a region, it is not as bad as before. I still experience much of what Dan describes, but at least the grid stays in place, and is no longer moving around. As with Dan, before it was often with a great deal below the bottom of the form. But with the region, that has changed. All I experience now is the uncontrollable grow in row hieght with less and less rows in the grid. With only 2 rows, one header and one data, they each occupy half of the region/grid size.
However, I have noticed that if I press ENTER, while the focus is in the input field above the grid (the field where the OnChange event causes the grid to be redrawn based on a new SQL string for each keypress), the grid is again redrawn, but without a new SQl call, it apparently causes the grid to render with normal sizes. Strange.
Anyway, I have added 4 files to the post:
Gridpart-dfm.txt is the copy you asked for.
RegionGridpart-dfm.txt is the same, but with the region part as well.
And GridUnit.txt is the code behind the grid, being executed for each keypress with an adjusted SQL select.
I have also added Gridpartwithoutregion-dfm.txt which is what it looked like when I wrote my first post in this tread.
I have tried almost everything possible to adjust, without much luck. Among those, also the anchors. But after I placed the Grid on (or inside) a region, it is not as bad as before. I still experience much of what Dan describes, but at least the grid stays in place, and is no longer moving around. As with Dan, before it was often with a great deal below the bottom of the form. But with the region, that has changed. All I experience now is the uncontrollable grow in row hieght with less and less rows in the grid. With only 2 rows, one header and one data, they each occupy half of the region/grid size.
However, I have noticed that if I press ENTER, while the focus is in the input field above the grid (the field where the OnChange event causes the grid to be redrawn based on a new SQL string for each keypress), the grid is again redrawn, but without a new SQl call, it apparently causes the grid to render with normal sizes. Strange.
Anyway, I have added 4 files to the post:
Gridpart-dfm.txt is the copy you asked for.
RegionGridpart-dfm.txt is the same, but with the region part as well.
And GridUnit.txt is the code behind the grid, being executed for each keypress with an adjusted SQL select.
I have also added Gridpartwithoutregion-dfm.txt which is what it looked like when I wrote my first post in this tread.

