I have also using Pivot is a class library solution. You can compile the solution and in the Web application, reference Pivot.dll. Another solution is to PivotTest,it is an ASP.NET application. This shows how to implement Pivot class.
Code:
public DataTable DataTableForTesting123
{
get
{
DataTable data1 = new DataTable ( "Table");
dt.Columns.Add ( "Sales Person");
dt.Columns.Add ( "Quantity");
dt.Columns.Add ( "Sale Amount");
dt.Rows.Add (new object [] ( "John", "Pens", 200, 350.00));
dt.Rows.Add (new object [] ( "John", "Pencils", 400, 500.00));
dt.Rows.Add (new object [] ( "John", "Notebooks", 100, 300.00));
return data1;
}
}
Bookmarks