Subject Re: [IBO] Unexpected IB_Grid behaviour on post data .. Re-Request
Author Paul Vinkenoog
Hi Adrian,

> I've an IB_Grid, a IB_UpdateBar, and a IB_Query.
> When I display data on the grid, and insert a new record, I then
> type the data in on the collums on the grid.
> The last collum I enter data into, is not moved out of, and I then
> click the post button.
> The record is posted to the grid, but the data entered in the last
> column is not posted, it is left <NULL>.
> If I then edit the record, and reenter the data for the column, it
> then posts it correctly.
> If I enter data for the column on an insert, and then move out of
> the column to the say previous column, same row, and then post the
> data, it is then accepted, and shows.
> Why on earth must I first tab out of the column to get the data to
> be saved.

It shouldn't be necessary: if I insert a record, fill fields, and hit
Post, all data are inserted correctly, including the field I'm working

It may be a version-specific thing (bug/feature), or maybe you have
tweaked some properties that I'm not aware of.

Which IBO version do you use?

Do you get the same behaviour on all columns? I.e., if you insert and
don't fill the columns in their natural order but e.g. with the second
column as the last one to fill in, does this still happen? If not, is
there a pattern (like for instance: it always happens on Date columns
but not on other types).

And if you make a simple test app that just connects to a database and
allows you to insert through an IB_Grid, with all properties defaulted
and no event handlers, do you still get the same behaviour?

Paul Vinkenoog