hello,
i am trying to follow the simple example included in my Infragistics WPF SDK (v11.1) in having a subgrid. However it is not showing the subgrid.
I would like the subgrid to show based on a property called Adjustments (which is a BindingList<MyType>).
<!-- Grid --> <igDP:XamDataGrid Grid.Row="1" x:Name="TransactionsGrid" DataSource="{Binding Transactions}" RecordContainerGenerationMode="Virtualize" SelectedItemsChanged="TransactionsGrid_SelectedItemsChanged" c:MouseDoubleClickBehavior.MouseDoubleClickCommand="{StaticResource TopsideEditCommand}" FontSize="11"> <igDP:XamDataGrid.FieldSettings> <igDP:FieldSettings AllowEdit="False" /> </igDP:XamDataGrid.FieldSettings> <igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings AutoGenerateFields="True" AllowAddNew="False" AllowDelete="True" SelectionTypeRecord="Single" HighlightAlternateRecords="True" /> </igDP:XamDataGrid.FieldLayoutSettings> <igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="UID" Label="" Width="20" /> <igDP:Field Name="EntityName" Label="Entity" Width="200" /> <igDP:Field Name="ReasonName" Label="Reason" /> <igDP:Field Name="PocketName" Label="Side Pocket" Width="200" /> <igDP:Field Name="Notes" Width="300" /> </igDP:FieldLayout.Fields> </igDP:FieldLayout> <!-- Subgrid --> <igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="FinancialAccount" Visibility="Collapsed" /> </igDP:FieldLayout.Fields> </igDP:FieldLayout> </igDP:XamDataGrid.FieldLayouts> </igDP:XamDataGrid>
i would also like to set AutoGenerateFields to false, if possible.
thanks.
Hello squarewave,
I am just checking your progress on the issue.
If you require any further assistance please do not hesitate to ask.
I have been looking through your post and what you can do in this case is adding field definition for the FinancialAccount child field. I made a simple project representing this behavior. Please have a look at it and let me know if it helps you.