开发者

Sorting in listview with object data source

net web application for social networking. I am using VS2008 and sqlserver 2008[.net 3.5]

In this website we are using 3-tier architecture. We pass businessobject to the UI.开发者_如何学运维

My listview is binded with object data source. Now I want to implement sorting in listview. Can anyone please suggest me the best method to do sorting in ListView with Object data source


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜