I would like to show my user control inside row details.
I have a complex data structure and cant show all items(just a few) inside datagrid, so I would like to open another control and show it inside row details. I had previously created(designed) it. I'm not creating it dynamicaly.
Is there any way how to achieve it?
I am working with C# and WPF and developing desktop app.
I would like to be able to use it like:
<DataGrid.RowDetailsTemplate>
<DataTemplate>
// <StackPanel Orientation="Horizontal" Margin="20,0,0,0">
// <TextBlock Text="Category:" FontWeight="Bold"/>
// <ComboBox IsEditable="True"
// ItemsSource="{Binding Source={x:Static Data:CheckBook.Categories}}"
// Text="{Binding Category}" />
// </StackPanel>
<MyControl ItemsSource="blabla">
</DataTemplate>
</DataGrid.RowDetailsTemplate>