WPF CollectionList to ListCollectionView from datagrid itemsource?

Up vote 0 down vote favorite share g+ share fb share tw.

I am new to WPF and can't understand why this error is hapoening. My code: List P = new List(); P = (List)ReviewItemsGrid. ItemsSource; In the second line of code, im getting the below error.

Unable to cast object of type 'System.Windows.Data. ListCollectionView' to type 'System.Collections.Generic. List`1iConfig.Common.Entities.ReConfigure.

ReConfigureBeneDiagProcCloneGroup' wpfdatagrid link|improve this question edited Feb 3 at 14:33Bali C2,0253718 asked Feb 3 at 13:44Raghu_code1.

Please someone come forward and help me....its urgent for me. – Raghu_code Feb 8 at 6:38 Myself found the solution for the above error.....need to do Casting for converting Collections objects into List object. Code as shown below " Grid.ItemsSource.Cast().ToList(); " – Raghu_code Feb 13 at 12:41.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions