c# - TreeList devexpress icons -


i use difference class datasource in treelist. show different icon node according property value of type difference. here code:

treelist1_getstateimage(object sender, devexpress.xtratreelist.getstateimageeventargs e) { treelistcolumn tlcolumn = treelist1.columns["differencetype"];         differencetypeenum differencetype = (differencetypeenum)e.node.getvalue(tlcolumn);         switch (differencetype)         {             case differencetypeenum.added:                  e.nodeimageindex = 0;                 break;             case differencetypeenum.deleted:                 e.nodeimageindex = 1;                 break;             case differencetypeenum.modified:                 e.nodeimageindex = 2;                 break;             default:                 throw new exception("difference not specified type");         } 

i have same icons when selected , when not selected , thats all, nothiung else, each time click on node nodeimageindex changed 0, when nodes arent selected work fine,

ehh im tired of ...

thanks help

i suggest handle getselectimage event define image should shown when node selected.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -