>In the first time, I insert datas in True DBGrid standard by code. After I
>want to change a data in a cell but if I did not change the row and come
>back, I get an error (message: data access error). I want the user insert
>datas without changing row.
>And the second thing. After the update of a cell, I want to make some
>calculations and insert the result in 3 cells of the grid. I tried a lot
>of thing but nothing works. I take the sample code I looked in the True
>DBGrid standard tutorial for mode 3.
>Help me please,
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.
Visionary Solutions Corp.
(remove abc above for email address)