Sorting ListView Columns?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way that when you tap on a column header within a ListView, there is a way of designing a control that will have a little arrow that points up when you tap first and points down when you tap again. The logic behind the tap event will sort by the column you have tapped in. Much the same way that you click on the subject, received date within Microsoft Outlook

Have any of you gurus tried this or are there any guidelines to designing a similar custom control on the web

marc
 
There're quite a few samples on the internet showing how to do that (this
one for example
http://samples.gotdotnet.com/quickstart/CompactFramework/doc/listviewsort.aspx)

As for having "a little arrow", the CF will not allow to draw anything on
the ListView header. As a workaround you could hide the original header and
create a custom owner-drawn one.

--
Alex Yakhnin .NET CF MVP
www.intelliprog.com | www.opennetcf.org

marcmc said:
Is there a way that when you tap on a column header within a ListView,
there is a way of designing a control that will have a little arrow that
points up when you tap first and points down when you tap again. The logic
behind the tap event will sort by the column you have tapped in. Much the
same way that you click on the subject, received date within Microsoft
Outlook.
Have any of you gurus tried this or are there any guidelines to designing
a similar custom control on the web?
 
Back
Top