Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > my DataView won't sort

Reply
Thread Tools

my DataView won't sort

 
 
bill
Guest
Posts: n/a
 
      10-20-2005
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





 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      10-21-2005
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
>
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorted DataView, but unsorted datalist when bound to the dataview CodeMonkey ASP .Net 1 02-04-2011 10:55 AM
DataView.sort does not work thru LinkButton nish ASP .Net 3 02-02-2005 10:26 PM
Sort an XML document using DataView =?Utf-8?B?RWQgQ2hpdQ==?= ASP .Net 1 12-14-2004 07:51 PM
Query on DataView.Sort Property Denzil ASP .Net 1 10-22-2003 11:01 PM
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. Navin ASP General 1 09-09-2003 07:16 AM



Advertisments
 



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