my DataView won't sort

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default my DataView won't sort

    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 Guest

  2. Similar Questions and Discussions

    1. DataView
      I must recreated dataview . I am in the designer insert dataview set datasource ... And I set before DataBind datasource on the dataview ... How I...
    2. Multiple DataBinds fail to reflect change in DataView Sort
      Hello all, I have constructed a datatable that is a subset of my dataset. I use a cached dataview as the datasource for my datagrid. For...
    3. DataView.Sort causing duplicate entries in a DataGrid control
      I have a custom object that exposes data through one of its properties that is of type DataTable. I then use the resultant DataTable from the...
    4. memory sort and disk sort
      I check the sysprofile table and find there are 700 times disk sort, I think it is lack of sort memory. I want to turn all the disk sort into the...
    5. Ado sort error-Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB.
      Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB. hi, guys i have asp...
  3. #2

    Default Re: my DataView won't sort

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


    "bill" <belgie@datamti.com> wrote in message
    news:ufBGBha1FHA.3756@tk2msftngp13.phx.gbl...
    > 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. Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139