This example demonstrates how to create a Pivot Grid and bind it to data via code.
In this example, the ASPxPivotGrid and SqlDataSource instances are created and initialized in code.
Assign the SqlDataSource instance to the ASPxPivotGrid.DataSource property to bind the Pivot Grid to data. Then call the ASPxPivotGrid.RetrieveFields method to generate DataSourceColumnBinding objects for each Pivot Grid field.
- Default.aspx (VB: Default.aspx)
- Default.aspx.cs (VB: Default.aspx.vb)
(you will be redirected to DevExpress.com to submit your response)