New Posts New Posts RSS Feed: DataGridViewComboBoxColumn Sorting
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

DataGridViewComboBoxColumn Sorting

 Post Reply Post Reply
Author
Darren View Drop Down
Newbie
Newbie
Avatar

Joined: 06-Jul-2007
Location: United Kingdom
Posts: 23
Post Options Post Options   Quote Darren Quote  Post ReplyReply Direct Link To This Post Topic: DataGridViewComboBoxColumn Sorting
    Posted: 20-Jul-2007 at 8:14am

I have the DataGridView Binding Mananger which contains one standard string colum and  ComboBoxColumn, the values in the combo are sorted from the data model before the grid is populated , but when i click on the column header to sort that column by it textual value , it seems to sort it by the value member. Is there a way to sort it by its display name.

Do i do this in the ListConverter Properties?
 
 
Back to Top
owais,zahid View Drop Down
Newbie
Newbie
Avatar

Joined: 22-Aug-2007
Location: Pakistan
Posts: 8
Post Options Post Options   Quote owais,zahid Quote  Post ReplyReply Direct Link To This Post Posted: 22-Aug-2007 at 7:49am

its logical behaviour is to sort with value member. I don't think listConverter will be any helpful in this scenario. What i recommend i, you should try to catch the sorting event of this column. In this way you can sort the columns on your criteria.

I will try to find a reference implementation, i am sure you will find it on the internet.
 
God Bless
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down