System.Windows.Forms.ColumnClickEventArgs Class
Information   Base Types   Related Resources

Provides data for the event.

  • Namespace: System.Windows.Forms
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.0.3705
  • Assembly: System.Windows.Forms.dll

  • System.EventArgs
  • View this type on MSDN
  • View this type on WinFX 247
    Articles (3)Discussions (17)MembersRotorChanges
    Articles

    Page: 1
    Alternative way to support Language under C# Framework
    The Code Project
    A suggestion to an alternative way to support Language under C# Framework
    Sorting a ListView with VB.NET
    STANDARDIO.ORG
    Every so often, while happily coding along in .NET, I’ll run into an object with a few methods that just don’t make sense. The .NET ListView object was just one of those. In VB6 it was a piece of cake to sort by columns in a ListView. All you did was pass it the index of the column you wanted to sort by. Now, in .NET, things have gotten a little bit more complicated. The gist of the new method is this: you must create your own custom class that implements the IComparable interface and overrides the Compare Function with your own code. Then take that class and set the ListViewItemSorter property of the ListView equal to it. Take a look at the custom class below and then see how it is used in the column click event of the ListView object.
    Sorting MultiColumn ListView Windows Forms Control
    C# Corner
    If you want to sort on the first column of a ListView, simply click the Sorting in the properties Window and choose Ascending or Descending as a value. If you want to do sorting in all the columns of a ListView, you need to write custom sorting using the ListViewItemSorter property. This property allows you to assign the property to an instance of a custom class that implements the IComparer interface.
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com