Hi,
I tried to use the following in cxGrid. But it can’t update the records. If I use the other type of dataset, it doesn’t matter that can update the records. TDAMemDataTable is using “FillWithDASql”. If not using “FillWithDASql”, that’s work fine.
with cxListView do
begin
for row := 0 to Controller.SelectedRowCount -1 do
begin
controller.FocusedRow := Controller.SelectedRows[row];
DataController.DataSet.Edit;
DataController.DataSet.FieldByName(‘IssueCode’).AsString := hrdGuid;
DataController.DataSet.Post;
SP_OCartonHrd.ApplyUpdates;
end;
end