Problem with Sorting of DataGrid with Arraylist binding

Discussion in 'ASP .Net Web Controls' started by Holysmoke, Oct 20, 2004.

  1. Holysmoke

    Holysmoke Guest

    Hi,

    I am using a DataGrid which is binds with an ArrayList (which contains an
    object returned from Database code). It binds well but I have a problem when
    sorting the datagrid. I see a method Sort in ArrayList but having diffculty
    with how-to? Remember I have to sort a particular property of the object

    I welcome your help and suggestions,

    TIA,
    Holy
     
    Holysmoke, Oct 20, 2004
    #1
    1. Advertising

  2. Holysmoke wrote:
    > I am using a DataGrid which is binds with an ArrayList (which contains an
    > object returned from Database code). It binds well but I have a problem when
    > sorting the datagrid. I see a method Sort in ArrayList but having diffculty
    > with how-to? Remember I have to sort a particular property of the object


    Holy, check out this article:

    Sorting an Array Using Array.Sort()
    http://aspnet.4guysfromrolla.com/articles/060403-1.aspx

    Happy Programming!

    --

    Scott Mitchell

    http://www.4GuysFromRolla.com

    * When you think ASP.NET, think 4GuysFromRolla.com!
     
    Scott Mitchell [MVP], Oct 20, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Neven Klofutar

    Binding ArrayList to GridView/DataGrid

    Neven Klofutar, Jun 2, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    15,408
    Neven Klofutar
    Jun 2, 2006
  2. Doug
    Replies:
    4
    Views:
    344
  3. Jon Stranger

    binding an arraylist to a datagrid

    Jon Stranger, Sep 23, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    137
    Jon Stranger
    Sep 23, 2003
  4. AV

    Arraylist binding to datagrid...

    AV, Sep 15, 2003, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    131
  5. David H.

    Binding an arraylist to a datagrid

    David H., Jan 28, 2004, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    136
    Alessandro Zifiglio
    Jan 31, 2004
Loading...

Share This Page