views:

304

answers:

1

Hi i am working in asp.net web application for social networking. i have sued VS2008 and sqlserver 2008[.net 3.5]

in this website we user 3-tier architecture. so we passed businessobject to UI.

My listview is binded with object data source. now i have to implement sorting in listview. please can anyone suggest me best method to do sorting in ListView with Object data source

+1  A: 

Add a parameter to the method of your business layer that gives you the data. This parameter will tell it how to sort the collection.

The ObjectDataSource object support property to set the member on which the sort must be done.

Fabian Vilers