<igDP:XamDataGrid> <igDP:XamDataGrid.FieldSettings> <igDP:FieldSettings CellClickAction="SelectCell"/> </igDP:XamDataGrid.FieldSettings> </igDP:XamDataGrid>
The FieldSettings object is used to specify settings that apply to one or more fields, as described below. This object is exposed by the following three properties:
DataPresenterBase's FieldSettings property
FieldLayout's FieldSettings property
Settings specified for this property become the default for all Fields in the control.
<igDP:XamDataGrid> <igDP:XamDataGrid.FieldSettings> <igDP:FieldSettings CellClickAction="SelectCell"/> </igDP:XamDataGrid.FieldSettings> </igDP:XamDataGrid>
Settings specified for this property become the default for all fields in this FieldLayout’s Fields collection.
<igDP:XamDataGrid> <igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.FieldSettings> <igDP:FieldSettings LabelWidth="200"/> </igDP:FieldLayout.FieldSettings> </igDP:FieldLayout> </igDP:XamDataGrid.FieldLayouts> </igDP:XamDataGrid>
Settings specified for this property apply only to the specific field.
<igDP:XamDataGrid> <igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="CustomerName"> <igDP:Field.Settings> <igDP:FieldSettings LabelClickAction="SortByMultipleFields"/> <igDP:Field.Settings> </igDP:Field> </igDP:FieldLayout.Fields> </igDP:FieldLayout> </igDP:XamDataGrid.FieldLayouts> </igDP:XamDataGrid>