Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6088333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:58:21+00:00 2026-05-23T11:58:21+00:00

What are the requirements for my list/collection so that it can be sorted in

  • 0

What are the requirements for my list/collection so that it can be sorted in a DataGridView when I click on the column header for sorting?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:58:22+00:00Added an answer on May 23, 2026 at 11:58 am

    The best place for this sort of information on the DataGridView is MSDN. For more obscure problems the next port of call is the excellent DataGridView FAQ written by Mark Rideout, the Program Manager for the DataGridView

    There is a quite thorough article on data binding and the DataGridView (including sorting) on MSDN titled Custom Data Binding.

    Essentially, when binding a data source to the DataGridView sorting works automatically so long as the source implements IBindingList and has supporting code for the interface methods working with sorting (e.g. SupportsSorting should return true).

    Some out of the box data sources do support sorting – the DataTable for example, but most do not.

    In particular, the BindingList, though it implements IBindingList does not support sorting. To have a list of objects be sortable you will need to create your own sortable list. There are several example of this on the web, using classes derived from BindingList. Search for SortableBindingList to find one (in fact there is an example in the data binding article I referenced above).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Due to specific requirements [*], I need a singly-linked list implementation that uses integer
If my requirements dictate that most of my accesses to the list are for
I have List collection that is populated in specific order (the requirement is that,
I'm tasked with providing a list of metadata requirements our data warehouse developers might
I got requirements- 1. Have random values in a List/Array and I need to
Design requirement: Show a list of items the user can pick from After having
I have requirement to get Facebook friends list with their images. How can I
I have a SharePoint list with Content Approval enabled. The business requirement is that
I trying to write an application that has a collection of students using different
I'm building a collection of RESTful resources that work like the following: (I'll use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.