DataTable1
DataTable2
What I'm looking for is:
Step 1- From DataTable1, get columnName where colGroup is YES or OK.
Step 2- Query DataTable2, and group by on columns returned from DataTable1 (Step1)
DataTable1
DataTable2
What I'm looking for is:
Step 1- From DataTable1, get columnName where colGroup is YES or OK.
Step 2- Query DataTable2, and group by on columns returned from DataTable1 (Step1)
Copyright © 2021 Jogjafile Inc.


This is tricky, but can be done with the dynamic Linq library.
using System.Linq.Dynamicandusing Newtonsoft.Json.This will return the following, which I believe is your desired output: