Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: ObservableCollection in Enumerable data


16 Nov 2012   #1

Windows 7 64 bit
 
 
ObservableCollection in Enumerable data

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.

My System SpecsSystem Spec
.

Reply

 ObservableCollection in Enumerable data




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:59 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33