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






Specifies whether the selection mode will use TreeView-like selection.

Syntax

Visual Basic (Declaration) 
<ISNet.Serialization.BinarySerializableAttribute()>
<ISNet.Serialization.XmlSerializableAttribute()>
<DescriptionAttribute("Specifies whether the selection mode will use TreeView-like selection.")>
<DefaultValueAttribute()>
<NotifyParentPropertyAttribute(True)>
Public Property IsTreeViewSelectionMode As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SelfReferencingSettings
Dim value As Boolean
 
instance.IsTreeViewSelectionMode = value
 
value = instance.IsTreeViewSelectionMode
C# 
[ISNet.Serialization.BinarySerializableAttribute()]
[ISNet.Serialization.XmlSerializableAttribute()]
[DescriptionAttribute("Specifies whether the selection mode will use TreeView-like selection.")]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
public bool IsTreeViewSelectionMode {get; set;}
Delphi 
public read-write property IsTreeViewSelectionMode: Boolean; 
JScript 
ISNet.Serialization.BinarySerializableAttribute()
ISNet.Serialization.XmlSerializableAttribute()
DescriptionAttribute("Specifies whether the selection mode will use TreeView-like selection.")
DefaultValueAttribute()
NotifyParentPropertyAttribute()
public function get,set IsTreeViewSelectionMode : boolean
Managed Extensions for C++ 
[ISNet.Serialization.BinarySerializableAttribute()]
[ISNet.Serialization.XmlSerializableAttribute()]
[DescriptionAttribute("Specifies whether the selection mode will use TreeView-like selection.")]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
public: __property bool get_IsTreeViewSelectionMode();
public: __property void set_IsTreeViewSelectionMode( 
   bool value
);
C++/CLI 
[ISNet.Serialization.BinarySerializableAttribute()]
[ISNet.Serialization.XmlSerializableAttribute()]
[DescriptionAttribute("Specifies whether the selection mode will use TreeView-like selection.")]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
public:
property bool IsTreeViewSelectionMode {
   bool get();
   void set (    bool value);
}

Example

C#Copy Code
WebGrid1.RootTable.SelfReferencingSettings.Enabled = true;
WebGrid1.RootTable.SelfReferencingSettings.ParentDataMember = "FolderID";
WebGrid1.RootTable.SelfReferencingSettings.ChildDataMember = "ParentFolderID";
WebGrid1.RootTable.SelfReferencingSettings.ExpandColumnMember = "Name";
WebGrid1.RootTable.SelfReferencingSettings.IsTreeViewSelectionMode=True;
WebGrid1.RootTable.SelfReferencingSettings.ParentRootMode =
    ISNet.WebUI.WebGrid.ParentRootMode.UseParentRootValue;

Remarks

In order to make a grid with TreeView selection mode, users need to set the IsTreeViewSelectionMode to True. TreeView selection mode will make application development easier, for example : Outlook 2003, Support Management System, and Discussion Board.

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.