| Visual Basic (Declaration) | |
|---|---|
Public Class FieldSettings Inherits DependencyObjectNotifier | |
| C# | |
|---|---|
public class FieldSettings : DependencyObjectNotifier | |
This settings object is exposed via the following 3 properties:
- Infragistics.Windows.DataPresenter.DataPresenterBase's FieldSettings - settings specified here become the default for all Infragistics.Windows.DataPresenter.Fields in every FieldLayout.
- FieldLayout's FieldLayout.FieldSettings - settings specified here become the default for all Infragistics.Windows.DataPresenter.Fields in this FieldLayout's FieldLayout.Fields collection.
- Infragistics.Windows.DataPresenter.Field's Field.Settings - settings specified here apply to only this one specific Infragistics.Windows.DataPresenter.Field.
Refer to the Fields topic in the Developer's Guide for an explanation of fields.
Refer to the Field Settings topic in the Developer's Guide for an explanation of the FieldSettings object.
Refer to the Theory of Operation topic in the Developer's Guide for an explanation of how this object is used.
The following example demonstrates how to create a FieldLayout and add it to the FieldLayouts property of a DataPresenterBase derived control. It also demonstrates how to create and initialize the FieldSettings of a FieldLayout and create the Fields that will make up that FieldLayout including the use of UnboundField instances.
| XAML | Copy Code |
|---|---|
<igDP:XamDataGrid x:Name="XamDataGrid12" BindToSampleData="true"> | |


~230.gif)
