DataGrid ordering

Discussion in 'ASP .Net' started by Wayne M J, Jun 12, 2004.

  1. Wayne M J

    Wayne M J Guest

    By default, I notice that the DG is LIFO (Last in First Out) which appends
    all new values to the end of the table.

    Is there a way to order it such that all new entries will appear at the top,
    without resorting to using a holding DB, as this looks to be an option:
    Create a DB/Table using the session_id, insert the users operations, return
    them in order using an index/primary_key.

    Taking the DB path is no trouble for me, but if there is an easier or more
    efficient way of doing I would appreciate any suggestions.

    --
    Wayne M Jackson
    ------
    WWW: http://www.wjackson.cable.nu
    Wayne M J, Jun 12, 2004
    #1
    1. Advertising

  2. "Wayne M J" <> wrote in message
    news:e$...
    > By default, I notice that the DG is LIFO (Last in First Out) which appends
    > all new values to the end of the table.


    Actually, I don't think the DataGrid is ordered at all. I think the order
    depends on the order of the DataSource.
    --
    John Saunders
    johnwsaundersiii at hotmail
    John Saunders, Jun 12, 2004
    #2
    1. Advertising

  3. Wayne M J

    Wayne M J Guest

    In news:, John Saunders bitched
    and moaned:
    > "Wayne M J" <> wrote in message
    > news:e$...
    >> By default, I notice that the DG is LIFO (Last in First Out) which
    >> appends all new values to the end of the table.

    >
    > Actually, I don't think the DataGrid is ordered at all. I think the
    > order depends on the order of the DataSource.


    From reading more, that is how it appears. I might actually use the temp-DB
    option, gives me a chance to `fool around.`
    Wayne M J, Jun 12, 2004
    #3
    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. nospam
    Replies:
    13
    Views:
    594
    Guinness Mann
    Oct 7, 2003
  2. Craig Douglas

    Ordering FileInfo[] by date

    Craig Douglas, Jan 30, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    346
    Craig Douglas
    Jan 30, 2004
  3. Patrick.O.Ige

    re-ordering rows/records in datagrid

    Patrick.O.Ige, Feb 8, 2006, in forum: ASP .Net
    Replies:
    6
    Views:
    8,128
    Patrick.O.Ige
    Feb 11, 2006
  4. nbigaouette

    Z-Ordering (Morton ordering) question

    nbigaouette, Nov 5, 2009, in forum: C Programming
    Replies:
    2
    Views:
    2,083
  5. Guest

    Ordering in DataList/Datagrid

    Guest, Dec 9, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    124
    Guest
    Dec 9, 2003
Loading...

Share This Page