I had seen two videos about Linq to sql. Those two videos has two approaches to bind data to GridView.
Linq to sql approache:
o where I select my data into var, then bind it to myGridview. See code below.
List collection class approache:
o Where I create a class " myProductObject".
o I initiate an instance List of my class:
List<myProductObject> myList = new List<myProductObject>();
o Then I fill in myList with my data using Linq.
Please tell me the deference between those two approaches? And which is better?