Search this Site
powered by
Google
Home
|
About Us
|
Blog
|
Link to Us
|
Contact Us
Shop at Our ASP.NET Store!
ASP.NET Resources
Tutorials & HOW TOs
ASP.NET Feeds
Articles
Blogs - ASP.NET Team
Blogs - Others
Conferences & Events
Forums
Microsoft KB Articles
ASP.NET Store
Books (including reviews)
Software
Videos
ASP.NET Directory
Applications
Articles & Samples
Components & Controls
Developer Sites
Hosting Services
Post your ASP Questions here!
.NET Downloads
.NET Framework 3.5
Visual Studio 2008
Visual Web Dev 2008 Express
HOW TO: Pivot a DataTable
Solution
CodeSnip: Pivot Tables with ADO.NET and Display in a DataGrid Paged Horizontally
by Steve Sharrock (ASPAlliance) - describes a simple method to pivot a DataTable producing rows for each column and a column for each row. The pivoted DataTable is then displayed in a DataGrid using horizontal paging to view a limited number of Columns in each page.
.NET CrossTabs: Transforming a Normalized DataReader into a Pivoted DataTable
by Jeff Smith
See also:
Pivot function (C#)
- .NET 1.1 example.
Sorting Columns with the C# Pivot Function
- .NET 2.0 example.
Datatable Pivot/Crosstab
by Bryan Reynolds - example code and unit tests in VB.NET
Related Resources
.NET CrossTabs versus SQL Server CrossTabs
by Jeff Smith - discusses how pivoting at the presentation layer results in clearer, shorter code and much better performance.
MSDN: DataTable Class
Add to favorites
|
Printable page
Home
|
About Us
|
Link to Us
|
Contact Us
Privacy Statement
© 2004-2010 ASPNETWorld.com