True DBGrid, Standard, Unbound Mode 3

True DBGrid, Standard, Unbound Mode 3

Post by vern » Sun, 25 Aug 1996 04:00:00

I've just gotten the Apex True DBGrid Standard Edition with the new
Unbound Mode=3. Strange things are happening to me.

When the grid "binds", using the Rebind Method, the first time,
my data is displayed just fine. Looking at the calls to the ClassicRead
event shows it reading each column in each row twice.

If I edit a field and change to another row, it reads the new row and
then reads rows 1 through the edited row, rather than 0 through the
edited row. For example, if I have a 2 column grid with 4 rows and
change cell (2,1) (the third row, second column), I get a proper
ClassicWrite event and then get the following reads:
        (3,0), (3,1), (1,0), (1,1), (2,0), (2,1), (3,0), (3,1)

This has the effect of overwriting data from another row into my changed

In addition, setting the Align or ColWidth properties for a column seem
to have the effect of wiping out the Locked property.

Anyone have any experience with this.


Vern Mallu


1. True DBGrid standard in unbound mode


First off, if you want to use the grid in "unbound" mode, you can't
attach to a RDC/DAO control (otherwise it's "bound"). That may be the
source of the "Data Access Error". I know this may be obvious to you,
but I just want to make sure it's covered.... :-)

When you use a grid in unbound mode, TrueGrid will call event handlers
that will ask for the data to be displayed, and to ask you to add new,
update, or delete rows. In essence, you're providing the data source
interface to the grid, whether it be a 2 dimension array, or a
Collection of records, or a link to an rdoResultSet, or whatever. This
isn't a real simple thing to do, but each step is quite
straightforward, and once this is done, adding extra columns for
calculations is actually very simple.

What exactly is your data source that you want to fill the grid with?
Your approach will obviously depend on this. I've had to do this for
several types of data. Let us know and we'll go from there!

Hope this helps a bit.

Greg Strauss
Visionary Solutions Corp.
Victoria, BC

(remove abc above for email address)

2. string function question 2

3. True DBGrid Pro - Unbound Column in Bound Mode

4. Servicing multiple users

5. True DB Grid in Unbound Mode

6. unable to browse data

7. True Grid example in unbound mode

8. Pdoxwin help desperately needed...

9. True DBGrid - Unbound columns - Filter

10. VB4E and unbound True DBGrid

11. VB4 Unbound True DBGrid to display data

12. (Q) Visual C++ DAO Help DBGrid Unbound Mode

13. DBGrid in unbound mode