Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am in trouble in DataGridView column sorting. My DataGridView DataSource is a object collection, here is the data binding code;

dgvStudents.AutoGenerateColumns = false;               
dgvStudents.DataSource = _oStudents; 

the exception is:
DataGridView control is data-bound. The control cannot use the comparer to perform the sort operation.

please anyone can give me the suggestion?
Posted
Updated 3-Jan-10 18:56pm
v3

1 solution

Take a look at this MSDN[^] discussion.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900