Hello,
In my project I have several views that use the XamDataGrid. In the fieldlayoutsettings I generally have to set the same properties. For example:
<igWPF:FieldLayoutSettings AllowDelete="False" AllowAddNew="False" MaxSelectedRecords="1" SelectionTypeCell="None" SelectionTypeField="None" SelectionTypeRecord="Single" AutoGenerateFields="False" HighlightAlternateRecords="True" DataRecordCellAreaStyle="{StaticResource XamDataGridAlternateStyle}" RecordSelectorStyle="{StaticResource XamDataGridRecordSelectedStyle}" />
FieldLayoutSettings doesn't have a style or datatemplate property, but I would like to avoid having to copy paste these properties. Is this possible?
HI,
Please let me know if you need further assistance regarding this issue.
you can't use a style setter to set a property on a subjobject:
Here is a post on this issue:http://es.infragistics.com/community/forums/t/25467.aspx.
You could create a helperclass that has a method that accepts the XamDataGrid's FieldoutSettings and updates the various properties.
Call this method in the XamDataGrid's load event.