Ticket T545606
Visible to All Users

cxGridServerModeTableView Datacontroller RefreshExternalData not refreshing when using cxDBNavigator buttons

created 8 years ago (modified 8 years ago)

Hi,

when editing data outside the cxGridServerModeTableView RefreshExternalData should refresh the cxGridServerModeTableView record.

This does not work, using cxDBNavigator for the external data FDQuery1.

Using the TDBNavigator on the same Datasource refreshes the TableView-record.

Delphi
Datasource1.Dataset := FDQuery1; cxDBNavigator1.Datasource := Datasource1; DBNavigator1.Datasource := Datasource1; cxGrid1ServerModeTableView1.Datacontroller.Datasource := dxServerModeFireDACDataSource1; ... procedure TForm151.cxDBNavigator1ButtonsButtonClick(Sender: TObject; AButtonIndex: Integer; var ADone: Boolean); begin // This does NOT refresh the cxGrid1ServerModeTableView1 unless the cxGrid1ServerModeTableView1 is refreshed by its internal Navigator. if AButtonindex in [nbDi_Post] then cxGrid1ServerModeTableView1.DataController.RefreshExternalData; end; procedure TForm151.DBNavigator1Click(Sender: TObject; Button: TNavigateBtn); begin // This refreshes the cxGrid1ServerModeTableView1 if Button in [nbPost] then cxGrid1ServerModeTableView1.DataController.RefreshExternalData; end;

Answers approved by DevExpress Support

created 8 years ago (modified 8 years ago)

ok - when using FDQueryAfterPost-event, things go fine.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.