when UseNestedPanels is on for the xamDataGrid and there are three rows used in the heading. but for the upper rows are all unbound and only the fields on the lower row contains data. How can the entire Row be set to Auto so that only one row of data within the nested Row is visible and the height reflects that only the lower row of the nested fields have data? And displays data only for the lower row of the nested fields for the entire row?
Hello Edward,
Thank you for your post. I have been looking into it and I can suggest you see this forum thread:
http://www.infragistics.com/community/forums/t/50873.aspx
where a similar issue is already discussed. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
the issue is not similar enough. this is a specific question.
I already have the grid formatted but have two issues.
Here is the xaml for what I currently have:
<igWpf:XamDataGrid Margin="8"
Theme="Office2010Blue"
DataSource="{Binding Path=Invoices, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
GroupByAreaLocation="AboveDataArea"
IsGroupByAreaExpanded="True"
BorderThickness="1"
BorderBrush="LightBlue"
ScrollViewer.HorizontalScrollBarVisibility="Visible"
ScrollViewer.VerticalScrollBarVisibility="Visible">
<igWpf:XamDataGrid.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="../../Themes/GridStyle.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</igWpf:XamDataGrid.Resources>
<igWpf:XamDataGrid.ViewSettings>
<igWpf:GridViewSettings UseNestedPanels="True" Orientation="Vertical" />
</igWpf:XamDataGrid.ViewSettings>
<igWpf:XamDataGrid.FieldLayoutSettings>
<igWpf:FieldLayoutSettings AllowAddNew="False"
AutoArrangeCells="Never"
AllowDelete="False"
AutoFitMode="Always"
AutoGenerateFields="False"
DataRecordSizingMode="Fixed"
FilterUIType="LabelIcons"
GroupByExpansionIndicatorVisibility="Visible"
HighlightAlternateRecords="True"
MaxSelectedRecords="1"/>
</igWpf:XamDataGrid.FieldLayoutSettings>
<igWpf:XamDataGrid.FieldSettings>
<igWpf:FieldSettings AllowEdit="False"
AllowRecordFiltering="True"
AutoSizeOptions="All"
AutoSizeScope="AllRecords"
CellClickAction="SelectRecord"
ExpandableFieldRecordHeaderDisplayMode="NeverDisplayHeader"
LabelClickAction="SortByMultipleFields"
LabelTextAlignment="Center"
Width="Auto"
SummaryUIType="MultiSelect"
SummaryDisplayArea="TopFixed"
AllowSummaries="True"/>
</igWpf:XamDataGrid.FieldSettings>
<igWpf:XamDataGrid.FieldLayouts>
<igWpf:FieldLayout Key="InvoicesKey">
<igWpf:FieldLayout.Settings>
<igWpf:FieldLayoutSettings AutoArrangeCells="Never" />
</igWpf:FieldLayout.Settings>
<igWpf:FieldLayout.Fields>
<igWpf:UnboundField Row="2" Column="0" RowSpan="3" Label="Client Name" />
<igWpf:Field Row="2" Column="1" RowSpan="3" Name="InvoiceDefinitionName" Label="Invoice Definition Name"/>
<igWpf:Field Row="2" Column="2" RowSpan="3" Name="InvoiceNumber" Label="Invoice Number"/>
<igWpf:UnboundField Row="0" Column="3" ColumnSpan="4" RowSpan="2" Label="Agency Transactions" AllowGroupBy="False" />
<igWpf:Field Row="2" Column="3" Name="AgencyTransactionsGrossCollectionsAmount" Label="Collections"/>
<igWpf:Field Row="2" Column="4" Name="AgencyTransactionsGrossNsfsAmount" Label="NSFs"/>
<igWpf:Field Row="2" Column="5" Name="AgencyTransactionsGrossReversalsAmount" Label="Reversals" />
<igWpf:Field Row="2" Column="6" Name="AgencyTransactionsNetCommissionAmount" Label="Commissions"/>
<igWpf:UnboundField Row="0" Column="7" ColumnSpan="4" RowSpan="2" Label="Client Transactions" AllowGroupBy="False"/>
<igWpf:Field Row="2" Column="7" Name="ClientTransactionsGrossCollectionsAmount" Label="Collections"/>
<igWpf:Field Row="2" Column="8" Name="ClientTransactionsGrossNsfsAmount" Label="NSFs"/>
<igWpf:Field Row="2" Column="9" Name="ClientTransactionsGrossReversalsAmount" Label="Reversals"/>
<igWpf:Field Row="2" Column="10" Name="ClientTransactionsNetCommissionAmount" Label="Commissions"/>
<igWpf:Field Row="2" Column="11" RowSpan="3" Name="AgencyAndClientTransactionsNetSalesTaxAmount" Label="Sales Tax"/>
<igWpf:UnboundField Row="2" Column="12" RowSpan="3" Label="Gross Collections" AllowGroupBy="False"/>
<igWpf:Field Row="2" Column="13" RowSpan="3" Name="NetEnterpriseDueAmount" Label="Due GC"/>
<igWpf:Field Row="2" Column="14" RowSpan="3" Name="NetClientDueAmount" Label="Due Client"/>
<igWpf:UnboundField Row="2" Column="15" RowSpan="3" Label="Adjusted Due Client (offset)" AllowGroupBy="False" />
<igWpf:UnboundField Row="0" Column="16" ColumnSpan="2" RowSpan="2" Label="Disbursement" AllowGroupBy="False"/>
<!--<igWpf:Field Row="2" Column="16" Name="DisbursementMethodTypeName" Label="Disbursement Method"/>-->
<igWpf:Field Row="2" Column="17" Name="DisbursementReferenceId" Label="Disbursement Reference Method"/>
<igWpf:UnboundField Row="0" Column="18" ColumnSpan="8" Label="General Ledger Entries" AllowGroupBy="False"/>
<igWpf:UnboundField Row="1" Column="18" ColumnSpan="2" Label="Trust" AllowGroupBy="False"/>
<igWpf:UnboundField Row="2" Column="18" Label="Account Number"/>
<igWpf:UnboundField Row="2" Column="19" Label="Cost Center" />
<igWpf:UnboundField Row="1" Column="20" ColumnSpan="2" Label="Client Payable" AllowGroupBy="False"/>
<igWpf:UnboundField Row="2" Column="20" Label="Account Number"/>
<igWpf:UnboundField Row="2" Column="21" Label="Cost Center"/>
<igWpf:UnboundField Row="1" Column="22" ColumnSpan="2" Label="Alternate Receivable" AllowGroupBy="False"/>
<igWpf:UnboundField Row="2" Column="22" Label="Account Number"/>
<igWpf:UnboundField Row="2" Column="23" Label="Cost Center"/>
<igWpf:UnboundField Row="1" Column="24" ColumnSpan="2" Label="Prepaid" AllowGroupBy="False"/>
<igWpf:UnboundField Row="2" Column="24" Label="Account Number"/>
<igWpf:UnboundField Row="2" Column="25" Label="Cost Center"/>
</igWpf:FieldLayout.Fields>
</igWpf:FieldLayout>
</igWpf:XamDataGrid.FieldLayouts>
</igWpf:XamDataGrid>
the xaml creates this:
if you look at the pasted image of what the xaml creates, you will notice that the row in the datagrid has a height for three lines of text, which is understandable based on the xaml. But only the last line will ever have text in the Row. How can I get the Row in the data grid to only show the last line of data for the Row so that when multiple items exisit in the DataSource all the Rows will look good and not have these huge row heights that are not needed for how I am populating the data.
Hello,
Is it possible for you to send us an image of the result you get and the one you want to achieve and also a sample application where this is reproduced, so we could be able to investigate this further for you?
this has been solved. thanks for your help. much appreciated.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.