Matt Berseth: Building a Grouping Grid with the ASP.NET 3.5 LinqDataSource and ListView Controls

 

So for a recent research project, I decided I would look into the LinqDataSource’s
control GroupBy and OrderGroupBy attributes
to see if they could be used to help me build a grid that supports grouping.ÂÂ
Below is the final screen shot for my reference application.  The grid shows
the rows in the Northwind Orders table – grouped by the customer that placed the order.ÂÂ
The group of orders for each customer can be expanded/collapsed by clicking on the
plus/minus icon (no postback required).  Read on if you are interested in the
details.  If you download the code, make sure to update the connection string
in the web.config to point to your Northwind database.

Matt
Berseth: Building a Grouping Grid with the ASP.NET 3.5 LinqDataSource and ListView
Controls

Random Posts

Loading…

Leave a Reply