Intersoft WebGrid Documentation
SelfReferencingSettings Property
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGridTable Class : SelfReferencingSettings Property






Gets or sets a collection of settings that replicate WebGrid's SelfReference feature.

Syntax

Visual Basic (Declaration) 
<PersistenceModeAttribute(PersistenceMode.InnerProperty)>
<DefaultValueAttribute()>
<ISNet.Serialization.XmlSerializableAttribute(True)>
<TypeConverterAttribute("System.ComponentModel.ExpandableObjectConverter, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")>
<NotifyParentPropertyAttribute(True)>
<DescriptionAttribute()>
<ISNet.Serialization.BinarySerializableAttribute()>
Public Property SelfReferencingSettings As SelfReferencingSettings
Visual Basic (Usage)Copy Code
Dim instance As WebGridTable
Dim value As SelfReferencingSettings
 
instance.SelfReferencingSettings = value
 
value = instance.SelfReferencingSettings
C# 
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[DefaultValueAttribute()]
[ISNet.Serialization.XmlSerializableAttribute(true)]
[TypeConverterAttribute("System.ComponentModel.ExpandableObjectConverter, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
public SelfReferencingSettings SelfReferencingSettings {get; set;}
Delphi 
public read-write property SelfReferencingSettings: SelfReferencingSettings; 
JScript 
PersistenceModeAttribute(PersistenceMode.InnerProperty)
DefaultValueAttribute()
ISNet.Serialization.XmlSerializableAttribute()
TypeConverterAttribute("System.ComponentModel.ExpandableObjectConverter, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
NotifyParentPropertyAttribute()
DescriptionAttribute()
ISNet.Serialization.BinarySerializableAttribute()
public function get,set SelfReferencingSettings : SelfReferencingSettings
Managed Extensions for C++ 
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[DefaultValueAttribute()]
[ISNet.Serialization.XmlSerializableAttribute(true)]
[TypeConverterAttribute("System.ComponentModel.ExpandableObjectConverter, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
public: __property SelfReferencingSettings* get_SelfReferencingSettings();
public: __property void set_SelfReferencingSettings( 
   SelfReferencingSettings* value
);
C++/CLI 
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[DefaultValueAttribute()]
[ISNet.Serialization.XmlSerializableAttribute(true)]
[TypeConverterAttribute("System.ComponentModel.ExpandableObjectConverter, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
public:
property SelfReferencingSettings^ SelfReferencingSettings {
   SelfReferencingSettings^ get();
   void set (    SelfReferencingSettings^ value);
}

Remarks

SelfReference makes a simple flat grid becomes hierarchical. It is because of the reference from one column to another based on the DataMember in it. There are numerous UI settings applicable to this feature, such as TreeView selection mode, parent root mode, AutoFit column on expand, and more.

WebGrid.NET designer provides a collection of settings called SelfReferenceSettings. These settings will reflect to WebGrid's SelfReference feature.

  • ChildDataMember = ChildDataMember is a property to set a child's data member that will be referred to the parent.
  • Enabled = Enabled is a property to set the whether the SelfReference is enabled or not.
  • ExpandColumnInnerTextPadding = ExpandColumnInnerTextPadding is a property to specify the padding for expand column's inner text area.
  • ExpandColumnMember = ExpandColumnMember is a property to specify where the expand/collapse icon will be rendered.
  • FitColumnOnExpand = FitColumnOnExpand is a property to automatically set best fit when expanded.
  • IsTreeViewSelectionMode = IsTreeViewSelectionMode is a property to specify whether the selection mode will use TreeView-like selection.
  • LoadOnDemand = LoadOnDemand is a property to specify whether child rows will be populated on demand.
  • ParentDataMember = ParentDataMember is a property to set parent data member of self referencing table.
  • TreatOrphanRecordAsRoot = TreatOrphanRecordAsRoot is a property to determine whether rows that doesn't have parent or child will be treated as root.

For more information regarding SelfReferencingSettings and Load on Demand Implementation you can read Self Referencing Table.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.