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
2009-10-22 11:55:33
A:
yes, you can like..
gridview1.DataSource = collectionList;
gridview1.DataBind();
Muhammad Akhtar
2009-10-22 11:58:41
Except you then have to manually code the insert, update and delete functionality.
Jason Berkan
2009-10-22 14:20:05