|
|
|
|
How to associate an image with an element found in a TreeView Table?
When filling a TreeView Table control, an image is associated with each element. It is a small symbol representing an opened or closed folder. Indeed, each level and each element of the hierarchy can be: - collapsed (image of closed folder by default).
- expanded (image of opened folder by default).
These images can be modified through programming. To modify the images representing the "collapsed" or "expanded" element, use the CollapsedImage and ExpandedImage properties. The following syntax allows you to use these properties:
<TreeView Table name>[Row index].CollapsedImage = <Image name> <TreeView Table name>[Row index].ExpandedImage = <Image name>
Code samples:
TVT_Product[10]..CollapsedImage = "ProductNormalPrice.jpg" TVT_Product[11]..CollapsedImage = "ProductBargainPrice.jpg"
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|