ObservableCollection in Enumerable data

1 posts, 0 answers
  1. Rama
    Rama avatar
    2 posts
    Member since:
    Nov 2012

    Posted 16 Nov 2012 Link to this post

    Hello,

    I have view model that is creating an enumerable object and in that object i have observableCollection object. So i am using the enumerable object as itemsSource to a report. I am using ItemsSource.MoveNext() method and getting the current item. How can i access the observableCollection from the current item and enumerate thru it? Here is an example:
     
    Report.ItemsSource = DataVal;

    In another form:
     
    While(ItemsSource.MoveNext())
     
    {
          ItemsSource.Current
         Need to iterate thru this Current to get the Observable collection. How to do that?
    }
     
    //DataVal is the enumertor and it has number of int and string fields and then it also has an observable collection.
     
    How do i access the observable collection field and iterate thru it.
     
    Thanks.

Back to Top