blog.mha.dk
The on-line blog of Michael Holm Andersen

Programmatically bind DetailsView and GridView

Thursday, 1 June 2006 11:08 by mha

Jacob, one of my studens (a former ASP programmer, now an excited ASP.NET programmer!) had an interesting problem yesterday. He wanted to programmatically bind data from the ProfileGroupPersonalSettings class to a DetailsView. However this is not as easy as it sounds!! - Martin and I put our heads together and came up with an solution.

So here you have it: A complete example of how to programmatically bind data to a DetailsView and GridView control using an ArrayList and DataTable.

Comments are closed