views:

43

answers:

2

Is it possible to bind a List to a GridView and have the editing features work?

+2  A: 

You can bind to an ObjectDataSource, but you will need to implement some methods on the backend and hook them up to your data source to handle the updates since the data source itself doesn't know anything about how to persist data.

Here's an MSDN article that describes this.

GalacticCowboy
A: 

yes, you can like..

gridview1.DataSource = collectionList;
    gridview1.DataBind();
Muhammad Akhtar
Except you then have to manually code the insert, update and delete functionality.
Jason Berkan