Question can also be:
What is your preferred way of invoking stored procedures to fill a DataGrid?
I am currently developing an ASP.NET Page, and I would like to know if Linq is the right way to go for use with my SQL Server DB.
ADO seems nice too, so I would just like to have feedback on what is the most appropriate in general terms..
LINQ sure makes it easy to call a stored procedure, but I am kind of stuck in trying to find out the right way to put the result set from the stored procedure to a datagrid.
Don't think I want to do a foreach there..but all examples seem to point that way.. or I'm just confused
I have read this blog post, and this one, it seems the ways to go are foreach and Ienumerable methods.. and I am a bit confused about the whole thing.
I am also thinking about the tutorial for creating a Movie DataBase where the DataGrid simply became unnecessary in that case.
What is the simplest, most to the point way of accessing a simple SQL Procedure and returning a populated datagrid, or datagrid like data presentation model?