how to bind to the results of a query in WPF
Posted
by randyc
on Stack Overflow
See other posts from Stack Overflow
or by randyc
Published on 2010-06-10T13:50:00Z
Indexed on
2010/06/10
13:52 UTC
Read the original article
Hit count: 462
I have a query that hits a service and returns the results back to me as an indexed collection
static void QueryActivities()
{
QueryClient qc = new QueryClient("BasicHttpBinding_IQuery");
QueryFilter filter = new QueryFilter();
filter.CallForService = false;
var result = qc.GetFilteredActivityIndex(filter);
result.Clone(); //inserted this just to test return in debug mode
}
WHen this is executed I get a return of 5 records ( actually five rows of data with multiple values per each row. id, type, date, address etc).
I would like to bind this return to a gridview within a WPF application. Is there a way to refernce and bind to result variable or do I need to create a new collection and then add the return of result to the new collection?
thank you
© Stack Overflow or respective owner