Custom Detail TTMSFNCDataGrid sem dataset

Boa tarde, tudo bem ?

Estou tentando fazer um Custom Detail, mas não conseguir, reproduzir igual da imagem que segue o texto

Custom Detail TMS Software | Blog
With TTMSFNCDataGrid, you have freedom of choice, and this also applies to setting up Master-Detail relationships. In this sample, we created a panel, added a TTMSFNCDataGrid instance which is bound to a detail table, and a chart, also setup via the same detail table.

Alguém teria um exemplo para que possa conseguir reproduzir igual ?

Muito obrigado.

Hi, attached is the sample. I’ve also sent this as a reply to your email.

fddemo.zip (373.9 KB)

Muito obrigado pelo exemplo.

Mas eu gostaria sem usar o dataset, seria possivel ?

Yes, this is possible but we unfortunately don’t have a sample yet showing how to create detail rows without a connection to a dataset.

somente com dataset? sem não tem possibilidade?

Demo.zip (79.7 KB)

Attached is a demo showing the capabilities.

Bom dia Pieter, passando para agradecer imersamente o exemplo, demorei voltar para ver se já tinha resposta, pois já tinha desistido de fazer. Mas ontem surgiu novamente a situação de fazer e pensei em olhar o posts e já tinha respondido como exemplo.

Se possivel gostaria de saber só mais um detalhe, como faria para carregar o detalhe só quando clicar no icone. Nâo teria problema se os detalhes tivessem somente uma linha iniciar com alguns informações. Como os detalhes pode ter vários registros, então melhor carrega só quando clicar.

Obrigado.

Hi, thanks for the kind words. it's not required to preload the data, you can use the OnCellBeforeNodeExpand event. and there you can use

procedure TFormMasterDetail.TMSFNCDataGrid1CellBeforeNodeExpand(Sender: TObject;
  ACell: TTMSFNCDataGridCellCoord; var ACanExpand: Boolean);
begin
  TMSFNCDataGrid1.Grids[1, ACell.Row + 1].LoadSampleData;
end;