Sorting in a ASP.NET Listview Control

Last post 04-25-2008 3:53 AM by Qin Dian Tang - MSFT. 4 replies.

Sort Posts:

  • Sorting in a ASP.NET Listview Control

    04-22-2008, 9:19 PM

    Hi everybody,

       Can anyone suggest me with an article/ resource for mastering sorting mechanism(custom sorting) in ASP.NET ListView control? I would be very grateful for this help. Its very urgent.

    Thanks

    Kiran Pedda.

  • Re: Sorting in a ASP.NET Listview Control

    04-23-2008, 2:08 AM
    • Loading...
    • ashrafur
    • Joined on 04-15-2008, 7:14 AM
    • Dhaka, Bangladesh
    • Posts 78

     please check it. It may help you to work with a complete listview

    http://www.codeproject.com/KB/webforms/CompleteListView.aspx

     

    Ashrafur Rahaman
    http://www.ashrafur.com
  • Re: Sorting in a ASP.NET Listview Control

    04-23-2008, 2:21 AM
    Virendra

    My SiteBlog
  • Re: Sorting in a ASP.NET Listview Control

    04-23-2008, 1:24 PM

     hi, thanks,

    i already tried this. but the items in the list view are not getting sorted. i am calling the loadData() method from the page's prerender event. i tried also calling from listview's pre render method.

    one thing i want to know is, "Is sorting in a listview , perpage basis or for the whole list with multiple pages say 10" 

  • Re: Sorting in a ASP.NET Listview Control

    04-25-2008, 3:53 AM
    Answer

    Hi kiranreddy0817,

    You can change PageSize for ListView, but the default page size is ten.

    If sort is still not working, please paste your code.

    Thanks,

    Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Page 1 of 1 (5 items)
Microsoft Communities
Page view counter