my DataView won't sort

Discussion in 'ASP .Net Datagrid Control' started by bill, Oct 20, 2005.

  1. bill

    bill Guest

    When I set the Sort on a DataView, it is ignored, and I can't figure out
    why. I'm using vb.net.

    After I successfully populate the DataView, I set the Sort on a String
    column, but it doesn't happen, and consequently my datagrid which is bound
    to the DataView doesn't get sorted.

    There are no errors - I have stepped through the code, and manually set the
    Sort in the Command window. The order of the rows doesn't change. I look
    at the data in the Command window also (debug.print DataView1(1)(1)) but the
    order doesn't change.

    What might be the reason for this? Can I sort on a String column?

    Thanks
    Bill
    bill, Oct 20, 2005
    #1
    1. Advertising

  2. bill

    Scott M. Guest

    Let's see the code you've placed in the grid's SortCommand event handler.


    "bill" <> wrote in message
    news:...
    > When I set the Sort on a DataView, it is ignored, and I can't figure out
    > why. I'm using vb.net.
    >
    > After I successfully populate the DataView, I set the Sort on a String
    > column, but it doesn't happen, and consequently my datagrid which is bound
    > to the DataView doesn't get sorted.
    >
    > There are no errors - I have stepped through the code, and manually set
    > the
    > Sort in the Command window. The order of the rows doesn't change. I look
    > at the data in the Command window also (debug.print DataView1(1)(1)) but
    > the
    > order doesn't change.
    >
    > What might be the reason for this? Can I sort on a String column?
    >
    > Thanks
    > Bill
    >
    >
    >
    >
    >
    Scott M., Oct 21, 2005
    #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. Denzil

    Query on DataView.Sort Property

    Denzil, Oct 21, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    2,257
    Chris Taylor
    Oct 23, 2003
  2. =?Utf-8?B?RWQgQ2hpdQ==?=

    Sort an XML document using DataView

    =?Utf-8?B?RWQgQ2hpdQ==?=, Dec 14, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,874
    Scott Allen
    Dec 14, 2004
  3. Replies:
    1
    Views:
    4,760
    Patrick.O.Ige
    Nov 5, 2005
  4. CodeMonkey
    Replies:
    1
    Views:
    728
    joyal jhaveri
    Feb 4, 2011
  5. Navin
    Replies:
    1
    Views:
    690
    Ken Schaefer
    Sep 9, 2003
Loading...

Share This Page