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

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

$
0
0

This example shows how to select and bind ASPxGridView to a data source at runtime. The page contains ASPxGridView, ASPxRadioButtonList and three data sources (SqlDataSource). In design mode the grid doesn't have any column. You should add all columns manually by using an appropriate algorithm. We have created columns as this is done in selected data columns. If a data source has insert, update or delete command, a command column will be appended to the grid.
Grid's data source is changed by clicking list items. Note that the EnableViewState property is set to false. It is done to avoid exceptions on binding the grid to another data source.

See also:
How to dynamically switch the grid's data source and recreate columns at runtime
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 autogenerated columns to different data sources at runtime. The grid is created in runtime mode


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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