raising this old chestnut again. i can't help feeling that it doesn't make sense to create say 30 objects, with *lots* of data, when all i want from the database is the ID field of a particular table. why not create a custom object with fields which match the gridview column requirements, create a stored proc to populate the object and bind the gridview. it's all readonly stuff and this would be *infinitely* more efficient than using an amalgam of standard objects, most of whose data i wouldn't actually need at that time.
|