There's a tiny line where the group area used to be when you turn it off. I can't seem to find the right style or template to change to get rid of it... Help is definitely appreciated! The image shows it but if you can't view the image it looks like this: '_FirstField SecondField' and it repeats for each sub-field you have. To be clear I want it to look like this: 'FirstField SecondField' without the _
Hello Ryan,
Thank you for your post. I have been looking into I, but it seems like that you have modify the default Styles of the XamDataGrid and if you could send me an isolated sample where this behavior is reproduced I will be able to investigate this further for you. Please let me know if you have further questions on this matter.
Looking forward for your reply.
<DataPresenter:XamDataGrid x:Name="dataGrid" Theme="[Current]" GroupByAreaLocation="None">
<DataPresenter:XamDataGrid.Resources>
<Style TargetType="DataPresenter:HeaderPresenter">
<Setter Property="FontWeight" Value="Bold"/>
</Style>
</DataPresenter:XamDataGrid.Resources>
<DataPresenter:XamDataGrid.FieldLayouts>
<DataPresenter:FieldLayout Description="Patients">
<DataPresenter:UnboundField BindingPath="Patient.FirstName" Label="First Name" />
<DataPresenter:UnboundField BindingPath="Patient.LastName" Label="Last Name" />
<DataPresenter:Field Name="Visits" />
</DataPresenter:FieldLayout>
<DataPresenter:FieldLayout>
<DataPresenter:Field Name="Date" Label="Visit: Date"/>
</DataPresenter:XamDataGrid.FieldLayouts>
<DataPresenter:XamDataGrid.FieldLayoutSettings>
<DataPresenter:FieldLayoutSettings
LabelLocation="SeparateHeader"
AutoFitMode="Always"
ExpansionIndicatorDisplayMode="CheckOnDisplay"
HeaderPlacement="OnTopOnly"
AutoGenerateFields="False"
RecordSelectorLocation="None"
HeaderPrefixAreaDisplayMode="None" />
</DataPresenter:XamDataGrid.FieldLayoutSettings>
<DataPresenter:XamDataGrid.FieldSettings>
<DataPresenter:FieldSettings AllowEdit="False"
LabelClickAction="SortByMultipleFieldsTriState"
CellClickAction="SelectRecord"
AllowGroupBy="True"
AllowHiding="ViaFieldChooserOnly"
CellContentAlignment="LabelAboveValueAlignCenter"
AllowResize="True"
ExpandableFieldRecordExpansionMode="ShowExpansionIndicatorIfSiblingsExist"
ExpandableFieldRecordHeaderDisplayMode="NeverDisplayHeader"
AllowRecordFiltering="False"
FilterClearButtonVisibility="Visible" />
</DataPresenter:XamDataGrid.FieldSettings>
</DataPresenter:XamDataGrid>
Basically what I want is that box in the upper left to be hidden but always have that space still there, even for rows that don't have the expansion indicator. Otherwise it doesn't look very hierarchical...