Click here to Skip to main content
15,885,546 members
Articles / Desktop Programming / Windows Forms

Implementing a Sortable BindingList Very, Very Quickly

Rate me:
Please Sign up or sign in to vote.
4.96/5 (65 votes)
1 Dec 2008CPOL2 min read 280.7K   4.6K   87  
A custom implementation of BindingList that provides sorting for every property of type T.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace SortableBindingList {
    static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main() {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new FormDemo());
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead Olivine Technology
Kenya Kenya
Technical Lead, Olivine Technology - Nairobi, Kenya.

"The bane of productivity: confusing the rituals of work (sitting at your desk by 8:00am, wearing a clean and well pressed business costume etc.) with actual work that produces results."

Watch me!

Comments and Discussions