Link to home
Start Free TrialLog in
Avatar of b001
b001Flag for Afghanistan

asked on

vfp9 grid shows to many lines

Hi Experts
i have a table that got 35 records, when I display them in a grid grid shows more lines even after the last record. How can just show same number of lines in a grid as records of a table.
After the last record I do not want to show more lines.
Thanks
Avatar of Cyril Joudieh
Cyril Joudieh
Flag of Lebanon image

Make the grid smaller or make the RowHeight bigger. You can also disable the scrollbars and make the grid ReadOnly.
Grids always scroll up to the point the last record is at the top line in the grid, there is no way to stop that.

If you set all columns sparse=.f. and set the grid.backcolor to a light grey you can visualize this part is empty. But that may introduce other problems, when you want sparse usage of a control just in the active record.

You could start trying automatic back scrolling, but forget about it, you rather should live with that grid behaviour or use another (activex) grid, if you can't live with that. But you'd always lose the ability to simply bind a DBF/view/cursor and need code to populate alernative grids.

Bye, Olaf.
ASKER CERTIFIED SOLUTION
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial