Skip to content

DevExpress-Examples/aspxgridview-switch-grid-data-source-and-recreate-columns-at-runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grid View for ASP.NET Web Forms - How to dynamically switch the Grid's data source and recreate columns at runtime

This example demonstrates how to use the same grid to display different data sources (SqlDataSource instances).

Switch grid data sources

Grid columns are recreated when a new data source is assigned. Note that the data source is unconditionally assigned on each postback/callback in the ASPxGridView.Load event handler, while columns are recreated only after the data source is switched.

Files to Look At

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)