Vlad,
As Mike mentioned, I'm a big fan of DataSets over object collections. Using DataSets is just as OOP-y as using custom objects, IMHO, because after all, a DataSet *is* an object!! Plus, a DataSet already has all the built-in stuff that you need for DataBinding, Sorting and a whole host of other stuff.
I don't do ASP.NET (I'm strictly a WinForm developer), so I look at this from that perspective, but I doubt if that makes much difference over all.
~~Bonnie
>Im wondering whether you guys prefer to bind collection of custom objects to the grid and other list controls or use datasets. My pain with the first approach is that I have to write tons of code to enable sorting, searching and the custom pagination. THe advantage is that once i bring the collection (as needed per page size)of objects to the client, I can cache the objects and can retrive them later if the user goes into details.
>The other approach is to get a recordset, bind it and on selection to load the custom object from db.
>Pros /cons? Im trying to go 100% oop but I may have to throw in some built in featuers of the .net datasets.
>
>Looking for your input.
>Thanks,
>Vlad