In WPF there is a library called DynamicTypeBuilder that lets us build IList or IEnumerator from a DataTable. However this does not exist in the WinForms. I used the reference to that dll of WPF to build a list from DynamicTypeBuilder and pass it to FlatDataSource in WinForms and then set the datasource in the PivotGrid.

The datasource is built from the list but the PivotGrid is not filled with the data in the DataSource. I think the PivotGrid must have some functionalities to use that DataSource.

I wonder if there is any way to do this?

Here is the code. If needed I can create a program with DataTable as well.

What you are looking for isn't exposed out of the box directly but you setup a FlatDataSource to a DataTable created dynamically. I have a sample that I have attached that we have shared throughout the community. Let me know if you have any questions.