New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data Grid Auto generating event not working with Expando #2778
Comments
Thanks @byrialsen I went through the link provided and it sounds useful if the row details template is simpler to display a string text or static control with some texts. Below is my scenario, I have a situation where in I need to show hierarchical data (i.e..,) Nested Data Grid upto 3 level and Columns will be decided only during run time First Column should be given with an Expander control where in the user can expand / collapse to show / hide the row details template. In my case it is Parent Grid -> Child Grid 1(Expander first column) -> Child Grid 2 I can manage to put an expander as first column for my parent grid But the inner child grids wont be explicitly available to add columns dynamically in code behind since it is wrapped up under data template Any suggestions would be helpful to extend the above solution for my case |
Yeah, it'd be nice to be able to bind directly to a List/ObservableCollection of |
@RBrid @harinikmsft any thoughts on this one? |
We are not adding features to this DataGrid at this time. If you would like to see this feature in the newly proposed WinUI DataGrid, please add a comment in the WinUI discussion issue. Thanks! |
Closing the issue as @anawishnoff already responded above with the WinUI discussion link. |
Current behavior
DataGrid Autogenerating Column is not working with Expando
Expected behavior
Expecting that Data Grid should also work with Expando for Auto Generating columns if bound with an ItemSource
Minimal reproduction of the problem with instructions
I am using an ObservableCollection which is of type dynamic in my View Model which I am binding it to Data grid Item Source
I will be be adding the Columns dynamically at run time into the Expando object and bind it to the above collection
This behavior is not triggering the Auto Generating Column event
The text was updated successfully, but these errors were encountered: