I can?t get this to work as desired.
I have areliusdataset -> datasource -> gridadapter -> FNCGrid
No Manager for the dataset is set.
Displaying + editing the data in the grid is ok.
However, when I insert a row into the dataset, the grid reacts correct only, if there immedtiately is a POST. So this works ok:
procedure TForm2.btnInsertRowsClick(Sender: TObject);
begin
adsTest.Insert;
adsTest.FieldByName('description').AsString := 'Adobe';
adsTest.Post;
end;
begin
adsTest.Insert;
adsTest.FieldByName('description').AsString := 'Adobe';
adsTest.Post;
end;
However, when the focus goes back to the grid bevor the POST, the grid (or the object list?) gets confused:
procedure TForm2.btnInsertClick(Sender: TObject);
begin
adsTest.Insert;
end;
begin
adsTest.Insert;
end;
procedure TForm2.btnPostClick(Sender: TObject);
begin
adsTest.Post;
end;
begin
adsTest.Post;
end;
Additionally the behaviour of the grid is different, when the dataset is filled by a TList and TCursor. According to the docs there should be no difference.
What am I missing?