Skip to content

DevExpress-Examples/aspxgridview-create-columns-and-bind-grid-at-runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grid View for ASP.NET Web Forms - How to create columns and bind the control to different data sources at runtime

This example demonstrates how to create columns and bind the ASPxGridView to different data sources at runtime. Select items in the ASPxRadioButtonList control to switch between SQL data sources.

Bind grid to a data source at runtime

The grid does not have columns in design mode. All columns are added to the grid at runtime according to columns of the bound data source. If the data source has the insert, update, or delete command, the grid displays the command column.

Note that the grid's EnableViewState property is set to false to avoid exceptions when binding the grid to a data source.

Files to Look At

Documentation

More Examples

About

Create columns and bind the ASPxGridView to different data sources at runtime

Topics

Resources

License

Stars

Watchers

Forks