Version

ColumnSet Property (Override)

Gets/sets the UltraTreeColumnSet instance that defines the column structure for UltraTreeNodes associated with this instance.
Syntax
'Declaration
 
Public Property ColumnSet As UltraTreeColumnSet
public UltraTreeColumnSet ColumnSet {get; set;}
Remarks

Unlike some of the other object properties of the Override, the ColumnSet property's get method does not automatically create an UltraTreeColumnSet object when it is accessed. The property must be set before it can be accessed, or an exception will be thrown.

Example
The following code sample demonstrates how to use the ColumnSet property of the Override to assign an UltraTreeColumnSet object to a particular node.

Imports Infragistics.Win
Imports Infragistics.Win.Layout
Imports Infragistics.Win.UltraWinTree

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Me.ultraTree1.ViewStyle = ViewStyle.FreeForm
        Dim columnSet As UltraTreeColumnSet = Me.ultraTree1.ColumnSettings.ColumnSets.Add("myColumnSet")
        Me.ultraTree1.ActiveNode.Override.ColumnSet = columnSet
    End Sub
using Infragistics.Win;
using Infragistics.Win.Layout;
using Infragistics.Win.UltraWinTree;
using System.Diagnostics;

		private void button1_Click(object sender, System.EventArgs e)
		{
			this.ultraTree1.ViewStyle = ViewStyle.FreeForm;
			UltraTreeColumnSet columnSet = this.ultraTree1.ColumnSettings.ColumnSets.Add( "myColumnSet" );
			this.ultraTree1.ActiveNode.Override.ColumnSet = columnSet;
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also