For starters, you should examine the object model and read the documentation. If you do that, you'll find the ColumnClick event on the ListView class. In your ColumnClick event handler, you should check the Column property of the ColumnClickEventArgs object passed to the handler.
This is basic stuff that you can easily find out for yourself.