Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to dynamically switch the grid's data source and recreate columns at runtime

$
0
0

This example demonstrates how to allow a user to use the same grid to view different data sources. Grid columns are recreated when a new data source is assigned. Please notice that the data source is unconditionally assigned on each post back / callback within the ASPxGridView.Load event handler, while columns are recreated only after switching the data source.

See also:
How to bind ASPxGridView with autogenerated columns to different data sources at runtime. The grid is created at design mode
How to bind ASPxGridView with manually created columns to different data sources at runtime. The grid is created in design mode.
How to bind ASPxGridView with autogenerated columns to different data sources at runtime. The grid is created in runtime mode

Example Comments

Added By: Kinnari Bhavsar at: 11/6/2013 2:59:12 AM    

Do we have C#.NET example?


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>