| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Question about sortke |
You can't directly. Using the controls native sort method you can only sort on the data in the columns. You may be able to modify the callback sort routine at http://vbnet.mvps.org/code/callback/lvsortcallback.htm to do what you want. -- Randy Birch MVP Visual Basic http://vbnet.mvps.org/ Please respond only to the newsgroups so all can benefit. "PS" wrote in message news:6bSdnctX783x62XdRVn-jg{at}comcast.com... : I have a listview (ListView1) with 5 items in it. I have typed in a word : into each of the 5 Listview1.Listitems.Items.tag properties. : : Example: : : ListView1.Listitems.Items(1).Tag = "Zebras" : ListView1.Listitems.Items(2).Tag = "Cherries" : ListView1.Listitems.Items(3).Tag = "Horse" : ListView1.Listitems.Items(4).Tag = "Apples" : ListView1.Listitems.Items(5).Tag = "Ducks" : : : : MY QUESTION IS: How do I sort (at runtime) the listview items alphabeticaly : depending on the word typed into each of the Listview's items.tag property? : : Since .tag is a property of an item in the listview, shouldnt I be able to : use the listview's SortKey property somehow? : : --- þ RIMEGate(tm)/RGXPost V1.14 at BBSWORLD * Info{at}bbsworld.com --- * RIMEGate(tm)V10.2áÿ* RelayNet(tm) NNTP Gateway * MoonDog BBS * RgateImp.MoonDog.BBS at 7/17/04 6:06:03 AM* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230) SEEN-BY: 633/267 270 @PATH: 278/230 10/345 106/1 2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.