How to : make sort types of DataGridViewColumn when click HeaderColumn

Dear all,

In my application have many types of DataGridViewColumn such as : Comboboxcolumn, MasktextBoxColumn (this type i customize), checkbox Column ... without DataGridViewColumn is make sort but other is not.

Please help me my problem.
Thank for your collaboration.
Khiem Vo.

[297 byte] By [khiemvo] at [2007-12-16]
# 1
I don't follow. What are you trying to do?

-mark
DataGridView Program Manager
Microsoft
This post is provided "as-is"

MarkRideout at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2

Dear Mark,

I would like to sort (ASC or DESC) columns when I lick on header columns. If my column is textboxcolumn, it allows sort when I click on header. However, if my columns are comboboxcolumn or masktextboxcolumn (custom column) when I click on header it don’t sort.

If my question in not clear, please tell me know.

Thanks for your collaboration.

Khiem Vo

khiemvo at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 3
Set the column's SortMode to Automatic.

-mark
Program Manager
Microsoft
This post is provided "as-is"

MarkRideout at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...