Developer Express Grid Detail View not refreshed after new row inserted

2k Views Asked by At

I am frustrated and desperate. I cannot understand why the detail view is not updated with the data of the newly inserted row.

I have a master and a detail grid view. The master dataset is a TADOQuery and the detail dataset is a TADOTable both connected to SQL Server. The datasources are connected okay and the master / detail keys are set okay.

I can edit / delete / insert in both views.

I am using NewItemRow in both views. When I insert new row in master view, a new row in added to the view as soon as I leave the NewItemRow. BUT this is not happening in the detail view, though. The data is actually inserted, the dataset events are fired but there is no new row added in the view itself. The only way to refresh the view is to deactive and re-activate the datasource but this is not a real solution, I think.

Why is this happening? What can I do to fix it?

Thank you very much in advance

1

There are 1 best solutions below

0
On

Most of the times bugs like this are eliminated when turning on the Sync property in the grid's DataController.

However, I would suggest that you use the latest version of devex. They have really done a lot of work getting rid of annoyable bugs like that.