I have a values in DataGrid like Name,Age,Address. I have to get datagrid values into Observable collection Object?Is it possible. .If Yes then plz anyone can tell me the solution?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
(sorry for my bad english)
Why you simply dont create a ObservableCollection in the first place instead of using a List?
Anyway, you can create an ObservableCollection with the List data this way:
If you really need to get the data from the DataGrid ItemsSource: