IntegralUI TreeListView User Guide - Lidor Systems
IntegralUI TreeListView User Guide - Lidor Systems
IntegralUI TreeListView User Guide - Lidor Systems
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
progressValue = RandomValue(progressValue);<br />
pBar.Value = progressValue;<br />
subItem.Control = pBar;<br />
break;<br />
case ColumnContentType.Custom:<br />
// Create and add a checkbox to the subitem<br />
CheckBox cBox = new CheckBox();<br />
cBox.Size = new Size(13, 13);<br />
if (nodeIndex % 3 == 1)<br />
cBox.Checked = true;<br />
subItem.Controls.Add(cBox);<br />
// Set the image index<br />
int imgIndex = nodeIndex % 9;<br />
// Create a custom content<br />
String content = "";<br />
content += "More info";<br />
content += "";<br />
content += "";<br />
}<br />
}<br />
. . .<br />
// Add the created content to the subitem<br />
subItem.Content = content;<br />
break;<br />
default:<br />
subItem.Text = "Item " + sufix + j.ToString();<br />
break;<br />
To display the images in subitems we have used an ImageList component added to the<br />
<strong>TreeListView</strong>.ImageList property. The result is:<br />
38