Skip to content

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

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

Does this example address your development requirements/objectives?

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •