- changed component to Persistence
- changed version to 1.2 (develop)
- changed title to Tcxgrid does not display all rows of TObjectDataSet when paging down in the grid
Tcxgrid does not display all rows of TObjectDataSet when paging down in the grid
Hi,
I'm just trying spring4d's new Persistence part and using its TObjectDataSet class.
So I just retrieved some datasets witch a firedac db2 connection using the following code:
type
TDM = class(TDataModule)
dsTodoListe: TDataSource;
private
FConnection: IDBConnection;
FSession: TSession;
FqryTodoListe: TObjectDataSet;
FToDoList: IList<TToDoVO>;
public
end;
// ...
procedure TDM.Initialize;
begin
FConnection := TConnectionFactory.GetInstance(dtFireDAC, ADConnection1);
FSession := TSession.Create(FConnection);
aToDoCQ := FSession.CreateCriteria<TToDoVO>;
FToDoList := aToDoCQ.ToList;
FqryTodoListe := TObjectDataSet.Create(Self);
FqryTodoListe.ColumnAttributeClass := ColumnFieldDefAttribute;
FqryTodoListe.DataList := FToDoList as IObjectList;
dsTodoListe.DataSet := FqryTodoListe;
FqryTodoListe.Open;
FqryTodoListe.Last;
end;
In my main Form, I've connected a TcxGrid to the DataSource dsTodoListe.
Right after I execute the Initialize method, I can see all rows in the grid and it seems, that everything works fine. But when I browse through the grid with PageDown, for example, I see only the first and the last row!
If I use cxGridDBTableView1.DataController.DataModeController.GridMode = True, then all rows are shown...
What could be the reason for this behaviour? Am I doing something wrong?
Does the DataEvent Part of TObjectDataSet send all necessary dataevents to the Grid?
Comments (8)
-
repo owner -
repo owner I cannot reproduce the error with DevExpress 14.2.6 and a TObjectDataset where i add a list of 100 objects. Scrolling works fine as well as sorting and filtering.
Please provide a full example to show the error - preferably without dependency on a DB2 database.
-
repo owner - changed status to on hold
-
repo owner - changed component to Data.ObjectDataSet
-
repo owner - changed component to ObjectDataSet
-
FYI I have been using ObjectDataSet with cxGrid for almost a year without notice the described behaviour.
-
repo owner - changed status to closed
-
repo owner - changed version to 1.2
- Log in to comment