Problems with TDBGrid (Delphi 7) and DOA

wvb

Member
Hi,

Problems with TDBGrid (Delphi 7) and DOA:

When I insert in a TDBGrid a second line, and the Grid has still no Scrollbar (value: ssHorizontal), this becomes a Vert. Scrollbar by the insert.
When now (by the Vert. Scrollbar) the last field gets out of the Grid, this wants also a Horiz. Scrollbar.
In the TDataSet. Post follows:

=> TDataSet. Resync (fashion: TResyncMode); => DataEvent (deDataSetChange, 0); => TCustomDBGrid. DataChanged;
The DataChanged UpdateScrollBar calls the WMSize - message, which TCustomDBGrid.UpdateRowCount calls.
Now are (by the Horiz. Scrollbar) only X-1 lines visible, instead of X lines.

Then TDataLink. SetBufferCount (x-1); is called.
Through this becomes the TDataSet.UpdateBufferCount the new value x-1.
Now, the value of the FActiveRecord of the TDataSet is 1 and the FCurrec of the TOracleDataset is 0 (before 1)?!
In the TOracleDataSet.ApplyUpdates delivers the Function TOracleDataSet.UpdateStatus now the value usUnModified, although the DataSet is in Insert-Mode (Action = 'I').

Is this problem already known?

To solve the problem immediately, I call the Function recno; of the TDataSet before calling ApplyUpdates;
Is that solution OK?
What should i do instead?
 
Back
Top