IntegralUI TreeListView User Guide - Lidor Systems
IntegralUI TreeListView User Guide - Lidor Systems
IntegralUI TreeListView User Guide - Lidor Systems
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
' Removes the column located at the specified location from the collection<br />
Me.treeListView1.Columns.RemoveAt(5)<br />
[C#]<br />
// Removes the column from the collection<br />
this.treeListView1.Columns.Remove(node);<br />
// Removes the column located at the specified location from the collection<br />
this.treeListView1.Columns.RemoveAt(5);<br />
If you want to remove all columns, use the Clear method<br />
[VB]<br />
Me.treeListView1.Columns.Clear();<br />
[C#]<br />
this.treeListView1.Columns.Clear();<br />
How to add existing column collection<br />
If you have some predefined set of columns, and you want this set as a whole to be added to the<br />
<strong>TreeListView</strong> control, you can use AddRange method:<br />
[VB]<br />
Imports <strong>Lidor</strong><strong>Systems</strong>.<strong>IntegralUI</strong>.Lists<br />
. . .<br />
Dim columns As <strong>TreeListView</strong>Column() = New <strong>TreeListView</strong>Column(2) {}<br />
For i As Integer = 0 To columns.Length - 1<br />
columns(i) = New <strong>TreeListView</strong>Column("Header " & i.ToString(), "Footer " &<br />
i.ToString())<br />
Next<br />
Me.treeListView1.Columns.AddRange(columns)<br />
[C#]<br />
using <strong>Lidor</strong><strong>Systems</strong>.<strong>IntegralUI</strong>.Lists;<br />
. . .<br />
<strong>TreeListView</strong>Column[] columns = new <strong>TreeListView</strong>Column[3];<br />
for (int i = 0; i < columns.Length; i++)<br />
columns[i] = new <strong>TreeListView</strong>Column("Header " + i.ToString(), "Footer " +<br />
i.ToString());<br />
this.treeListView1.Columns.AddRange(columns);<br />
How to fix column to the left or right side of the control<br />
There are situations when you need some column(s) to be fixed on left or right side of the<br />
<strong>TreeListView</strong> control, while other columns remain scrollable. In this way the data in fixed columns<br />
will always remain visible, while scrolling the remaining area.<br />
24