>hi all,
>
>What is the advantage of using Grid and ListBox? When comparing them, which is better in what situation? I'd like to learn more about them, anyone have time to share his/her experience will be greatly appreciated :-)
>
>Jimi
Hi Jimi,
Listboxes are usually reliable up until you get over 500-1000 records. Some say even as low as 300. A grid is much more configurable and can handle whole tables, although you usually want to limit what your users have to scroll through. Listboxes do have moverbars if you want the users to rearrange entries, which grids do not.
If you have a relatively short list of choices, only one or two columns, and you want the users quick access and incremental searching, the listbox will be fine. Grids can be configured to work the same, but it takes more development time. Grids are definitely the way to go if you want to show, say, more than three columns of a table or SQL result set, have over 500 entries, etc.
There are many useful classes here in the download section that enhance grids and quite frankly, have led me to use them more. Ingrid is excellent and brings incremental search capabilities to the grid, there are a few that give multiple row selection, highlighting, etc.
- Brian
VFP6 SP5, VFP8 SP1, VFP 9 SP 1 and Win XP SP 3 (unless otherwise specified)
www.wulfsden.com