Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Quantumgrid Master Detail Ansicht (https://www.delphipraxis.net/159035-quantumgrid-master-detail-ansicht.html)

franktron 11. Mär 2011 13:30

Quantumgrid Master Detail Ansicht
 
Ich habe eine Quantumgrid mit einer Master- und eine Detailview.

Jetzt möchte ich das wenn ich die Detailview Expandiere Daten geladen werden und dann in der View angezeigt werden, das geht aber nicht hier mal der Code den ich bis jetzt habe.

Delphi-Quellcode:
procedure TF_AU_DASA.cxGridDBTableView4DataControllerDetailExpanded(
  ADataController: TcxCustomDataController; ARecordIndex: Integer);
begin
  D_Best_AuList.Close;
  kas_client.GetBestAuList(D_Best_AuList,ADataController.Values[ARecordIndex,7],
    ADataController.Values[ARecordIndex,8]); //Holt Daten ab und packt sie in den D_Best_AuList
  D_Best_AuList.Open;
end;

procedure TF_AU_DASA.cxGridDBTableView4DataControllerDetailHasChildren(Sender: TcxDBDataController;
  ARecordIndex, ARelationIndex: Integer; const AMasterDetailKeyFieldNames: string;
  const AMasterDetailKeyValues: Variant; var HasChildren: Boolean);
begin
  HasChildren:=True;
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:20 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz