grid append record

hi 


i use firedac to manage records in a grid. If i use dstData.Append the grid give me an error : 'dataset not in edit or insert state'. But if i use Insert all go fine !

Any solution ?


Bye

Hi, 


did you call dstData.Edit?
Are you able to reproduce the same behavior on a TGrid?
Besides this code, do you interact with the grid during the execution?

Kind Regards, 
Pieter

if i do dstData.disablecontrols go fine with append otherwise i must use only insert !

Hi, 


Can you send us a sample that is able to reproduce this?
Are you able to reproduce the same behavior on TGrid / TStringGrid?

Kind Regards, 
Pieter

hi pieter i sent to you an email with a test and source. Bye