For the moment, I’m binding my gridviews by calling a linq query that returns a list collection of objects MyObject. In my gridview, if I’m using a boundfield I set its Datafield property to the name of the property of MyObject and if I’m using an itemtemplate I work with Eval. In my code behind, I have
MyGridview.DataSource = MyListOfMyObject;
MyGridview.DataBind();
All seems to work fine.
What’s the purpose of adding an ObjectDataSource control in the aspx file. What does it do extra?
Thanks.
PS: I’m new to the .net framework and I’m still figuring things out.
From here: