Saturday 15 March 2014

c# - XtraTreeList CustomDrawNodeCell not working as expected (binded with dynamic DataTable) -



c# - XtraTreeList CustomDrawNodeCell not working as expected (binded with dynamic DataTable) -

i have treelist 3 levels of nodes: city -> section -> employee. there few fields applicable in case when city , few applicable when section or employee. example:

when city draw cells of fields 'same_city' , 'postal_code_mentioned' when section or employee draw cells of field 'id_mentioned'. in case above 2 cell's editors invisible , vice-versa.

for handled event customdrawnodecell of treelist , did e.handled=true each respective cases.

now code working fine when have binding list, when trying same dynamic datatable not working. in case when node 'city' selected cells of city node , kid nodes (department , employee) becoming invisible (including id_mentioned) , click employee or section , cells of city becoming visible along id_mentioned.

in short, in case e.handled hides/shows cell editor of each , every cell in treelist , not of specific node!

any thought behavior?

got problem. trying node treelist1.getdatarecordbynode(treelist1.focusednode) instead treelist1.getdatarecordbynode(e.node).

c# vb.net winforms devexpress xtratreelist

No comments:

Post a Comment