The example demonstrates how to implement custom sorting for a DataGridView.
Download the file by clicking the link above.