S
Sam Loveridge
Hi All.
I have been loving the easy binding of a straight forward GridView directly
to a web service method using the ObjectDataSource, however I've come into a
tangle trying to apply a more complex binding solution with a DataList.
Let's say the simple method described above is a full list of items with a
customer number in a grid (call it QUERY A). What I want to do is use the
same data source for QUERY A to display a DataList that groups items by
customer details.
What I have established is a DataList that binds to a customer query to
display more detailed customer information as the primary data source for
the DataList (QUERY B), but within its ItemTemplate I want to display a
GridView for each customer to display their items. Ideally this sub query
should be based on the data from QUERY A so I don't have to load it all
again, making the switching between the full list and the grouped by
customer views faster.
This sounds like your classic master/slave query, where the data source for
the nested GridView in the DataList is driven from a value in the DataList
control for the customer ID, but how do I create a data source for my QUERY
A data to allow the funky VS2005 binding with minimal code-behind?
Any ideas?
Thanks in advance,
Sam.
I have been loving the easy binding of a straight forward GridView directly
to a web service method using the ObjectDataSource, however I've come into a
tangle trying to apply a more complex binding solution with a DataList.
Let's say the simple method described above is a full list of items with a
customer number in a grid (call it QUERY A). What I want to do is use the
same data source for QUERY A to display a DataList that groups items by
customer details.
What I have established is a DataList that binds to a customer query to
display more detailed customer information as the primary data source for
the DataList (QUERY B), but within its ItemTemplate I want to display a
GridView for each customer to display their items. Ideally this sub query
should be based on the data from QUERY A so I don't have to load it all
again, making the switching between the full list and the grouped by
customer views faster.
This sounds like your classic master/slave query, where the data source for
the nested GridView in the DataList is driven from a value in the DataList
control for the customer ID, but how do I create a data source for my QUERY
A data to allow the funky VS2005 binding with minimal code-behind?
Any ideas?
Thanks in advance,
Sam.