Professional Web Applications Themes

Repost : Dataset not sorting - ASP.NET General

Hi all, I did post this earlier but I do need a fairly urgent resolution to this problem of mine. My web app contains a datagrid with a dataset within. The dataset is the result of two other datasets (merged) but when my program sorts the dataset it does not appear sorted in the datagrid. I would prefer to sort the dataset itself prior to passing it back to the requestor (as opposed to setting the sort of the datagrid). How do I achieve this? Regards John....

  1. #1

    Default Repost : Dataset not sorting

    Hi all,

    I did post this earlier but I do need a fairly urgent resolution to this
    problem of mine.

    My web app contains a datagrid with a dataset within. The dataset is the
    result of two other datasets (merged) but when my program sorts the dataset
    it does not appear sorted in the datagrid.

    I would prefer to sort the dataset itself prior to passing it back to the
    requestor (as opposed to setting the sort of the datagrid).

    How do I achieve this?

    Regards
    John.


    John Guest

  2. #2

    Default Re: Repost : Dataset not sorting

    You cannot sort a dataset. You can use a DataView and define a sort. That
    will presented a sorted view of the data when using the dataview - however,
    the data in the dataset itself will not be altered.

    "John" <ab.com> wrote in message
    news:phx.gbl... 
    dataset 


    Marina Guest

  3. #3

    Default Re: Repost : Dataset not sorting

    Thanks for the reply.

    Could you please point me a code example of how to achieve this?


    "Marina" <hotmail.com> wrote in message
    news:#phx.gbl... 
    however, 
    > dataset [/ref]
    the 
    >
    >[/ref]


    John Guest

  4. #4

    Default Re: Repost : Dataset not sorting

    Hope this helps.

    http://www.dotnetjohn.com/articles/articleid77.aspx

    Jeremy
     
    achieve this? [/ref]
    define a sort. That [/ref]
    dataview - [/ref][/ref]
    resolution to this [/ref][/ref]
    The dataset is the [/ref][/ref]
    program sorts the [/ref][/ref]
    passing it back to [/ref][/ref]
    datagrid). 
    >>
    >>[/ref]
    >
    >
    >.
    >[/ref]
    Jeremy Guest

Similar Threads

  1. Sorting dataset to listbox
    By jonnysoco in forum Macromedia Flash Data Integration
    Replies: 1
    Last Post: March 25th, 05:56 PM
  2. Replies: 1
    Last Post: January 21st, 02:07 AM
  3. Repost: Problem Retrieving DataSet Returned By A WebService
    By Programatix in forum ASP.NET General
    Replies: 1
    Last Post: July 17th, 01:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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