The following sample demonstrates how to initialize the FieldSettings for a specific FieldLayout. In this example, the CellClickAction is changed so that clicking upon a cell with result in the containing DataRecord being selected.
<igDP:XamDataGrid BindToSampleData="True">
<igDP:XamDataGrid.FieldLayouts>
<!-- define a field layout that will match the data -->
<igDP:FieldLayout>
<!-- initialize settings for the fields in this specific field layout -->
<igDP:FieldLayout.FieldSettings>
<igDP:FieldSettings CellClickAction="SelectRecord"/>
</igDP:FieldLayout.FieldSettings>
<!-- define the fields for the field layout -->
<igDP:FieldLayout.Fields>
<igDP:Field Name="name" />
<igDP:Field Name="department" />
<igDP:Field Name="salary" />
<igDP:Field Name="email" />
</igDP:FieldLayout.Fields>
</igDP:FieldLayout>
</igDP:XamDataGrid.FieldLayouts>
</igDP:XamDataGrid>