dBASE Programming - Grid Vertical Scrollbar Problem

This is Interesting: Free IT Magazines  
Home > Archive > dBASE Programming > May 2005 > Grid Vertical Scrollbar Problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Grid Vertical Scrollbar Problem
Dave Edwards

2005-05-10, 2:47 am

Hi All,

A simple form...
A table with indexes on a couple of fields is dragged onto the form.
The table has about 1000 records.
A grid is placed on the form and datalinked to the table.

When the form is run, the grid behaves as I want it to.
It has a vertical scrollbar with a small slider (maybe 2mm high) and I
can drag it up and down. The table data scrolls as expected.

Now I set the rowset indexname to one of the table's indexes.

The grid no longer behaves as I want...
The slider has increased in height to about 2cm and I can no longer
continuously scroll through the data by dragging the slider. The
slider seems to only know about three positions (top, middle and
bottom).

Does anyone know how I can achieve a smooth scroll on an indexed
table?

Regards,

Dave Edwards

Marc VdB

2005-05-10, 2:47 am

http://www.fghoche.com/dbulletin/bu17_a.htm

--
www.vdblogic.de/dbl
------


Sébastien de Breuck

2005-05-10, 7:48 am

Hi Dave,

I had the same problem as yours when sorting the data in a grid. I apply a grid refresh after the data are sorted and it works fine
ex : this.form.grid1.refresh()

Regards,

Sébastien
------------------

Dave Edwards Wrote:


> Now I set the rowset indexname to one of the table's indexes.
>
> The grid no longer behaves as I want...
> The slider has increased in height to about 2cm and I can no longer
> continuously scroll through the data by dragging the slider. The
> slider seems to only know about three positions (top, middle and
> bottom).
>
> Does anyone know how I can achieve a smooth scroll on an indexed
> table?
>
> Regards,
>
> Dave Edwards
>


Ken Mayer [dBVIPS]

2005-05-10, 5:54 pm

Dave Edwards wrote:
> Hi All,
>
> A simple form...
> A table with indexes on a couple of fields is dragged onto the form.
> The table has about 1000 records.
> A grid is placed on the form and datalinked to the table.
>
> When the form is run, the grid behaves as I want it to.
> It has a vertical scrollbar with a small slider (maybe 2mm high) and I
> can drag it up and down. The table data scrolls as expected.
>
> Now I set the rowset indexname to one of the table's indexes.
>
> The grid no longer behaves as I want...
> The slider has increased in height to about 2cm and I can no longer
> continuously scroll through the data by dragging the slider. The
> slider seems to only know about three positions (top, middle and
> bottom).
>
> Does anyone know how I can achieve a smooth scroll on an indexed
> table?


Unfortunately this is not really the grid. It's the way that dBASE
handles data internally. It's noticeable in the grid, but it's really a
symptom of the difference in the way that a table is opened with and
without an index ...

Ken

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
Dave Edwards

2005-05-15, 8:33 am

On Tue, 10 May 2005 16:31:32 +1200, Dave Edwards
<REMOVEd.edwards@actrix.co.nz> wrote:

<snip>
>Does anyone know how I can achieve a smooth scroll on an indexed
>table?


Thank you all for your responses. I have now decided not to rely so
much on the scroll bar but to use a seeker instead. Maybe someday the
grid will be improved.

Dave Edwards

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com