* "jy836" <ja**********@comcast.net> scripsit:
Firstly, is there a way to find out which column header a user has clicked
on?
\\\
Private Sub ListView1_ColumnClick(ByVal sender As Object, ByVal e As ColumnClickEventArgs) Handles ListView1.ColumnClick
If e.Column Is Me.ColumnHeader1 Then
...
ElseIf...Then
...
...
End If
End Sub
///
And secondly, is there then an easy way (or any way, for that matter) to
sort the items by that column (either alphabetically or numerically)?
<URL:http://www.codeproject.com/cs/miscctrl/customheader.asp>
There are many other samples on sorting of items in the Windows Forms
section of Codeproject too.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>