I have hierarchical data. There is a one to one relationship between my parent and child. My requirements dictate that only the child be displayed in the grid. What is the best way to accomplish this with xamDataGrid?
My first approach was to create a new DataRecordPresenter style that has a new Template and set that on the grid. However I get a null exception during runtime and the only information from that exception is a stacktrace that goes deep into Infragistics code. Also, I am not sure what to put in the Template.
Hi,
I tried your solution, but have'nt got it to work write yet.
I have an other question on the same topic. If I add a Field of type double, the value is justified on right and is round to 2 decimals automaticaly. If I add a UnboundField of type double, the value is justified on the left et no rounding is done. Since UnboundField inerit from Field class, I assumed that it would behave the same way. Would'nt it be a good idea. And it would work the same way for the expandable fields.
Karine
Try setting the DataType of the UnboundField to your collection type.
I tried your solution, it's better, but it steel does'nt work.
Now, I see an expandable icon in the first left column, wich is wath I wanted. But when I expand it, all I see is the title of the sub-level group : "Positions" and the term "(Collection)" under. The data expected is not shown. Can you help me again?
Just set the IsExpandable property on the UnboundField. e.g.
<igDP:UnboundField BindingPath="AssetMixClassRaw.Positions" IsExpandable="True"/>
I tried the solution you proposed and it works for the regular fields, but when I use it for a ICollection field in order to make a sub-level group appear, it does'nt seem to work.
In this example, the AssetMixClassRaw.Positions is a Collection. When I tried it, I had a column named Positions instead of a sub-level group. What did I do wrong?
<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings SelectionTypeRecord="Extended"
SelectionTypeCell="Extended"
</igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldSettings ExpandableFieldRecordExpansionMode="ShowExpansionIndicator"
<igDP:FieldLayout>
<igDP:UnboundField Label="MaturityValue" BindingPath="AssetMixClassRaw.MaturityValue"/> <igDP:UnboundField BindingPath="AssetMixClassRaw.Positions"/>
<igDP:FieldLayout.Settings>
</igDP:FieldLayout.Settings>
<igDP:Field Label="{x:Static p:Resources.AccountNumberCaption}" Name="AccountNumber" />
</igDP:XamDataGrid.FieldLayouts>