I have tested UniDBGrid connected with TClientDataset. I need to refresh some arbitrary rows without scrolling UniDBGrid:
with ClientDataSet do
begin iIndex := RecNo; DisableControls; try First; while not EOF do begin Edit; for cb2 := 0 to FieldCount - 1 do Fields[cb2].AsWideString := 'New' + cb2.ToString; Post; Next; end; finally EnableControls; end; RecNo := iIndex; end;
After execution this code the UniDBGrid is not updated. Shouldn't I use DisableControls? It works good even without it