-
|
I want to add data to a DataGrid using a DataTable because my data doesn't have a fixed model, so I have to add it column by column using code. Here is XAML: Here is code-behind: |
Beta Was this translation helpful? Give feedback.
Answered by
kyuranger
Nov 26, 2025
Replies: 2 comments
-
|
I found a solution here: Modify my backend code as follows: It works now. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kyuranger
-
|
Because there is no direct support of displaying datatable with datagrid. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

I found a solution here:
#13238
Modify my backend code as follows: