I have problem like data comes from db in viewmodel and load in tabel. table structure depends on data.
for example, data like 3 rows and each row has different colums.
say row 1 has 3 columns,row 2 has 5 column or so on.
and Also need to highlight some cells based on data value condition.

Jay Krishna ReddyRank #152 · 15.2K reputationPosted Jun 27, 2021, 12:55 AM EDT
https://www.codeproject.com/Articles/891995/Dynamic-Columns-in-a-WPF-DataGrid-Control-Part-2
Kaushik Bhatt53 reputationPosted Jun 27, 2021, 6:05 AM EDT