In my DataGridControl, I have defined Column objects for the columns of the master rows and DataGridItemProperty objects (like below) for the columns of the detail rows (PropertyDetailDescription in DataGridCollectionViewSource.DetailDescriptions).
<xcdg:DataGridItemProperty Name="MyProp" DataType="{x:Type sys:Decimal}" />
I have AutoCreateDetailConfigurations set to True on my DataGridControl, so the objects that the detail rows bind to have extra properties I don't want to be displayed as columns. However, I am unable to specify and hide these columns in a DataGridItemProperty object like I can with a Column object (like below). How is this possible with DataGridItemProperty objects?
<xcdg:Column FieldName="MyHiddenProp" Visible="False" />
Also, I wish to apply some formatting to the values in the cells of the detail rows. With Column objects I can use CellContentTemplate (like below), but DataGridItemProperty objects don't have this facility. How can this be done with DataGridItemProperty objects?
<xcdg:Column FieldName="MyFormattedProp" CellContentTemplate="{StaticResource integralCellContentTemplate}" />
One more thing, how do I export the contents of the detail rows to Excel? The ExportToExcel() function of DataGridControl only exports the master rows.
Associate, .NET Development
Morgan Stanley, UK