c# - Bind a record in Treelist -


i'm facing issue in binding single row treelist. in application have 2 forms. first form contains treelist contain list of rows.

i need selected row list. using

public object selectedrow { return treelist.getdatarecordbynode(treelist.focusednode) } 

using code selected row.

in second form, i'm trying bind row.

public void row(selectedrow) { treelist2.datasource=selectedrow; //i row value here. } 

but data not able shown in second treelist. step need bind selectedrow second treelist.

the datasource should ienumerable-type. try (pseudo-code ahead):

public void row(selectedrow) {       list<yourtype> list = new list<yourtype>();       list.add(selectedrow);       treelist2.datasource=list;  } 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -