Microsoft
70-484 · Question #99
You are developing an application in which a collection of objects is returned by a web service when the user carries out a search. You need to bind a GridView control with the results from the web…
The correct answer is B. Create a CollectionViewSource and set its source to the collection returned by the web. See the full explanation below for the reasoning.
Question
You are developing an application in which a collection of objects is returned by a web service when the user carries out a search. You need to bind a GridView control with the results from the web service. How should you set up the data source of the GridView so that when the UI is updated, the result from the search is returned?
Options
- AEnumerate the members of the collection of objects from the search result.
- BCreate a CollectionViewSource and set its source to the collection returned by the web
- CSet the ItemsSource property of the GridView to the collection returned by the web service.
- DCreate a custom control and data-bind the custom control with the collection returned by the
How the community answered
(45 responses)- A4% (2)
- B73% (33)
- C7% (3)
- D16% (7)
Community Discussion
No community discussion yet for this question.