TDBChart & TDaMemDatable

I’m trying to use TDBChart with TdaMemTable, but the problem when I choose Dataset property for Datasource of TDBChart, it doesn’t list any TdaMemTable on the project.

Also I tried to add TVirtualTable from DevArt to make as a mediator, but it also can’t see any TDaMemDatatable on the project?

Hello,
You should use TDADataSource component instead of TDataSource.
Assign TDADataSource.DataTable with memdatatable component and TDBChart.DataSource with TDADataSource component.

vovanl,

I do use TDADataSource with all TdaMemTables in the project, but in TDBChart Datasource property has has two options for connecting to database which they are:

Single Record -> connect using Datasource, this working fine.

Dataset -> connect using Datasets, this shows no thing.

please look at attached images for more info.

Hello,
TDAMemDataTable table doesn’t contain TDataset base class. You can access to TDAMemDataTable.Dataset property and use it.