C # и форм Windows дата сортировать текстовый формат элемента управления datagridview
Hello, I am on demoralized! I switched to Sqlite with my windows forms c #, great. Finally, knowing that there is no date format, I opted for text in dd / MM / yyyy format. The concern now is that my Datagridview is not sorting the dates correctly. There are a lot of topics on the web, but I can't ... I need a little help please to find an answer…. Is it possible to sort a column by code: dd, then MM, then YYYY ignoring the slash (/)
private void Datagridview1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { if (e.ColumnIndex == Datagridview1.Columns[1].Index) { // ici le code } }
thank you,
Что я уже пробовал:
I changed the REAL, INTEGER, TEXT, NUMERIC formats but nothing helps.
Even with this example I don't understand ..
sortablebindinglist.zip.