data binding in Silverlight Multi Column Collapsible Tree List

May 28, 2010 at 2:36 PM

hi,

i am using Silverlight Multi Column Collapsible Tree List. here i have  an issue  in binding data  to the control. i have  an  list  which  contains teh data

 now i need  to  group the data so that i can  create an parent child  relation ship  so that once i clcik the  row   the  data corresponding to that  row  will be  shown.

 ex: i have an data like this in a list c#  here All  tells   they are the top level. so we  will be  showing these dataas  a   1 level in the  grid once  they clcik the button we  will  be showing further data of thet level

 

 name    school  parent

kumar      fes         All

manju      fes         kumar

anu         frank       kumar

anitha      jss          All

rohit       frank       manju

anill        vijaya      manju

vani         jss          kumar

soumya   jss           kumar

madhu     jss          rohit

 shiva       jss          rohit

vanitha       jss          anitha

priya      frank          anitha

output in Multi Column Collapsible Tree List

name school
kumar fes --> once we click the expand button we will be showing further data of kumar that is manju, anu, vani like these
anitha jss

 

 now  how can i  group data like this in an list

 so now  i need  to  group the data based on the parent . in the example   what you had  given had  an ObservableCollection class that returns the data

 now my question is how can i  group data like this  any help  how  i can  format the data like this in an  ObservableCollection class  would be  really helpfull

anyhelp would be greatly appreciated

 thanks

kumar