The NodeItemsConverter type exposes the following members.

Constructors

  NameDescription
NodeItemsConverter

Methods

  NameDescription
Convert
Converts custom node items to a collection of DataTreeGridItem objects (as required by Items properties of DataTreeGrid component).
ConvertBack
Throws a not supported exception as two way conversion is internally implemented and may be configured using the UpdateSourceOnTargetChanges and UpdateTargetOnSourceChanges properties of the converter.
Equals (Inherited from Object.)
Finalize (Inherited from Object.)
GetHashCode (Inherited from Object.)
GetType (Inherited from Object.)
MemberwiseClone (Inherited from Object.)
ToString (Inherited from Object.)

Properties

  NameDescription
ContentMember
Gets or sets the property name of custom node items that Content property of DataTreeGridItem objects should be bound to. Source object values retreived by the custom property may be of any type (including string). This property can be set only at initialization time (an exception is thrown if it is set after having the conversion process started).
IndentationMember
Gets or sets the property name of custom node items that Indentation property of DataTreeGridItem objects should be bound to. Source object values retreived by the custom property need to be of integral type. This property can be set only at initialization time (an exception is thrown if it is set after having the conversion process started).
IsExpandedMember
Gets or sets the property name of custom node items that IsExpanded property of DataTreeGridItem objects should be bound to. Source object values retreived by the custom property need to be of Boolean type. This property can be set only at initialization time (an exception is thrown if it is set after having the conversion process started).
UpdateSourceOnTargetChanges
Gets or sets a value that indicates whether data source is automatically updated when target DataTreeGridItem objects generated by the converter get their internally bound values changed. Set this property to false when the feature is not needed, e.g. when the user interface is read only (by default it is set to true in order to automatically propagate changes back to the data source as expected in most situations). This property can be set only at initialization time (an exception is thrown if it is set after having the conversion process started).
UpdateTargetOnSourceChanges
Gets or sets a value that indicates whether target DataTreeGridItem objects generated by the converter are automatically updated when internally bound data source values change. Set this property to true only when the feature is needed, i.e. when code behind changes the data source while the user interface presents it and all changes should be automatically reflected on screen (by default it is set to false in order to provide increased performance). Note that automatic updates work only when the custom data source implements INotifyCollectionChanged interface and/or custom data objects implement INotifyPropertyChanged interface. This property can be set only at initialization time (an exception is thrown if it is set after having the conversion process started).

See Also