Re: Need help with Listview sort

From: Rick Dunmire (dunnie_at_pa.net)
Date: 05/31/04


Date: Sun, 30 May 2004 21:31:04 -0400

So I take it that there is no way to substitute the built in function (at
least no easy way)?

"Randy Birch" <rgb_removethis@mvps.org> wrote in message
news:echLWGYREHA.2412@TK2MSFTNGP10.phx.gbl...
> Except understand that the listview will only sort on one column at a
time,
> not on multiple columns.
>
> --
>
> Randy Birch
> MVP Visual Basic
> http://vbnet.mvps.org/
> Please respond only to the newsgroups so all can benefit.
>
>
> "Maurizio Benvenuti @libero.it>" <zeross<remove> wrote in message
> news:uImdPCYREHA.1160@TK2MSFTNGP09.phx.gbl...
> :
> : "Rick Dunmire >" <<dunnie@STOP SPAM.pa.net> ha scritto nel messaggio
> : news:uvbhgrWREHA.3988@tk2msftngp13.phx.gbl...
> : > Hello all,
> : >
> : > I have a question about Listview columnheader sorting.
> : > It seems that the listview uses a built in function for sorting on a
> : > particular
> : > column when it is clicked (provided that the proper statements are
used)
> : but
> : > can the
> : > columnheader click be trapped to substitute a function outside of the
> : > listview. The
> : > reason is that when I click on a columnheader, I need to do a sort
like
> : lets
> : > say the
> : > header is "Date", I need to sort on the "Date" header then probably on
> : > "InspNumber"
> : > header and lastly on the "StickerNumber" header. I may have 40
> inspections
> : > on the
> : > same day using 2 different sets of inspection stickers so I need to
sort
> : all
> : > inspections
> : > by the Date first, then by the IinspNumber, then StickerNumber. I need
> to
> : > use a simailar
> : > function for several other columnheaders if possible. Can this be
> achived
> : in
> : > any way?
> :
> :
> : You should start from here:
> : http://vbnet.mvps.org/code/callback/lvsortcallback.htm ;-)
> :
> : Byee
> :
> :
>



Relevant Pages

  • ListView error in Winform - vb.net
    ... ...when I attempt to "Refresh" a ListView control AFTER it has been sorted. ... I have tried by Sort classes below because, inexplicably, MSFT stripped the ... Private mNumeric As Boolean ... Private m_bAltSort As Boolean ...
    (microsoft.public.dotnet.framework.windowsforms)
  • ListView issue
    ... ...when I attempt to "Refresh" a ListView control AFTER it has been sorted. ... I have tried by Sort classes below because, inexplicably, MSFT stripped the ... Private mNumeric As Boolean ... Private m_bAltSort As Boolean ...
    (microsoft.public.dotnet.languages.vb)
  • ListView problem - Bug ?
    ... ...when I attempt to "Refresh" a ListView control AFTER it has been sorted. ... I have tried by Sort classes below because, inexplicably, MSFT stripped the ... Private mNumeric As Boolean ... Private m_bAltSort As Boolean ...
    (microsoft.public.dotnet.languages.vb.controls)
  • BUG REPORT: ListView Control
    ... ...when I attempt to "Refresh" a ListView control AFTER it has been sorted. ... I have tried by Sort classes below because, inexplicably, MSFT stripped the ... Private mNumeric As Boolean ... Private m_bAltSort As Boolean ...
    (microsoft.public.dotnet.general)
  • VB.NET ListView sort bug
    ... ...when I attempt to "Refresh" a ListView control AFTER it has been sorted. ... I have tried by Sort classes below because, inexplicably, MSFT stripped the ... Private mNumeric As Boolean ... Private m_bAltSort As Boolean ...
    (microsoft.public.dotnet.framework.windowsforms.controls)