For Programmers: Free Programming Magazines  


Home > Archive > C# > March 2004 > ListView Column Reordering









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ListView Column Reordering
news.telusplanet.net

2004-03-28, 10:28 pm

I have set AllowColumnReorder to true and turned off AutoArrange but when I
load a list view with data I still cannot get it to order the columns no
matter which column I click on.

Help


Peter Venter

2004-03-28, 10:28 pm

"news.telusplanet.net" <colosus77@hotmail.com> wrote in message news:<bRCWb.60192$7Q1.41071@clgrps12>...
> I have set AllowColumnReorder to true and turned off AutoArrange but when I
> load a list view with data I still cannot get it to order the columns no
> matter which column I click on.
>
> Help



Do you want to be able to sort the items in the listview , or the
columns in the listview ? The "AllowColumnReorder" property enables
the user to drag the columns around in the listview to different
indexes, and has nothing to do with the actual items in the listview.
Is this what you want to happen or do you want to order the items in
the listview ?
Travis

2004-03-28, 10:28 pm

I would like to sort the Items in the List View not the columns



"Peter Venter" <pventer@idi.co.za> wrote in message
news:abae967b.0402120356.12c09807@posting.google.com...
> "news.telusplanet.net" <colosus77@hotmail.com> wrote in message

news:<bRCWb.60192$7Q1.41071@clgrps12>...
when I[color=darkred]
>
>
> Do you want to be able to sort the items in the listview , or the
> columns in the listview ? The "AllowColumnReorder" property enables
> the user to drag the columns around in the listview to different
> indexes, and has nothing to do with the actual items in the listview.
> Is this what you want to happen or do you want to order the items in
> the listview ?



Peter Venter

2004-03-28, 10:28 pm

"Travis" <colosus77@hotmail.com> wrote in message news:<IUcZb.26171$n17.8842@clgrps13>...
> I would like to sort the Items in the List View not the columns


As far as I know there is no "automatic" way to accomplish this. You
have to get your hands dirty and do it manually. Have a look at
http://www.c-sharpcorner.com/Code/2...ViewSorting.asp
Is this what you are looking for ?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com