AllowSorting = True, BUT Web DataGrid Wont Sort

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

  1. #1

    Default AllowSorting = True, BUT Web DataGrid Wont Sort


    I'm obviously missing something, suggestions are welcomed.

    Thanks
    tony010409020622@spamthis@hotmail.com Guest

  2. Similar Questions and Discussions

    1. Hyperlink columns in DataGrid With AutoGenerateColums set to True
      I have a datagrid with AutoGenerateColums property set to True, i want to make these columns as hyperlinks, so that when user clinks on i can show...
    2. Changing Width of Datagrid (AutoGenerateColumn=true)
      Hi, hope some1 can help me trying this about a week. I read the data for my Datagrid into a dataset, convert a little bit and store the...
    3. 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...
    4. How to find a record in a Datagrid with AllowPaging set to true.
      I have a "Find" button that I want to use to locate the correct pageindex so that my user can find a name in a datagrid of names. I suppose that...
    5. Export datagrid(with allowsorting) to Excel
      In this instance, since you know what the user wants when you query the data, I would consider sorting the data on the server when you pull the...
  3. #2

    Default Re: AllowSorting = True, BUT Web DataGrid Wont Sort

    are your sorting event handlers hooked up?

    --
    Regards,
    Alvin Bruney [MVP ASP.NET]

    [Shameless Author plug]
    The Microsoft Office Web Components Black Book with .NET
    Now Available @ [url]www.lulu.com/owc[/url]
    Forth-coming VSTO.NET - Wrox/Wiley 2006
    -------------------------------------------------------



    <tony010409020622@spamthis@hotmail.com> wrote in message
    news:jignj1lvcvhp6s9uc0qidnnm6c27fb7b03@4ax.com...
    >
    > I'm obviously missing something, suggestions are welcomed.
    >
    > Thanks

    Alvin Bruney - ASP.NET MVP Guest

  4. #3

    Default Re: AllowSorting = True, BUT Web DataGrid Wont Sort

    Just setting "Allow Sorting" to true doesn't automatically make your data
    sort. You need to write the sorting code in the grids "SortCommand" event
    handler. All turning sorting on does is "allow" the column headers to be
    clickable and fire the SortCommand event.


    <tony010409020622@spamthis@hotmail.com> wrote in message
    news:jignj1lvcvhp6s9uc0qidnnm6c27fb7b03@4ax.com...
    >
    > I'm obviously missing something, suggestions are welcomed.
    >
    > Thanks

    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