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
Post a Comment