Hi,
My goal is to create dynamically columns. Columns are added via a timer event. I have access to the data before to set the DataContext.
I found that the DataGrid has the method HitTestService.CellInfoFromPoint/RowItemFromPoint, but it requires a point.
Alternatively, is there a way that I could set the DataContext in another way?
My goal is to create dynamically columns. Columns are added via a timer event. I have access to the data before to set the DataContext.
I found that the DataGrid has the method HitTestService.CellInfoFromPoint/RowItemFromPoint, but it requires a point.
Alternatively, is there a way that I could set the DataContext in another way?
In order to help, here is a sample app.
The technic of using Loaded event of the DataTemplate did not work.
Screenshot.png is what the sample does
Expected result.png is what I would like
Thank you!