grib Posted November 7, 2017 Share Posted November 7, 2017 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.