1.The using of
DataSource
or not in real time project depends on the design constraints that may exist.
2.In my opinion the best way is by using
DataSource
, because in this way you no not need extra coding for integrating with the
GridView
control, so you will gain time. You could find an example of using in this way in my next article:
Advanced ASPX GridView Pagination and Data Entities[
^]
3.If you are interesting in finding details about the 2nd possibility (not using
DataSource
control), here is a good article:
http://www.binaryintellect.net/articles/66852121-52f5-40b4-a077-eb464fa1b339.aspx[
^]