I use a cxGrid to display a table, the date in the table are changed every minutes by other programm, and I use a timer to refresh the data.
Here is my code in timer event:
//reload data
DataModule1.ADOStoredProcGetSendingStatus.Active := false;
DataModule1.ADOStoredProcGetSendingStatus.Active := true;
//refresh tvSendStatus.DataController.RefreshExternalData;
but there's problem, it can refresh the record which updated by other program,but can not refresh the record which insert by other program, when delete a record by other program ,this will raise an exception.
I try to use UpdateItem(False),
but it takes no effect.
how to refresh the cxGrid to display the new inserted record.