I am using DevExpress TreeList. I have read this article and followed the steps.
- Created
ImageListand added icons init. - TreeList property is set
SelectImageList = ImageList TreeList.ImageIndexFieldName = "ImageID"- Following
DataTableis assigned toTreeList.DataSource
Table is given below
ID Name Parent ImageID
1 Root 0 0
2 Node1 1 1
3 node2 2 2
4 node3 2 2
The Problem is TreeList is showing same icon with each node.
I found the problem in this, problem was in the data type.
While adding columns in datatable just mention its type.