Regarding the comment “you cannot use LINQ for non-technical reasons”:
I assume that you do not want to use LINQ to SQL, because you want to keep your three-tier architecture. But you may not know that you can use LINQ for objects, and this will provide you with flexibility.
Suppose you have a mid-level method: List Tier2.SomeMethod (). You can assign this return value of this method as a GridView data source, and then specify SomeObject methods / properties in the GridView control: gvSomeGridView.DatasSource = Tier2.SomeMethod (); gvSomeGridView.DataBind ();
Next, you can extract SomeObject from the DataItem into GridView callbacks.
NTN.
source share