davidegironi / advanceddatagridview

A .NET WinForms DataGridView with advanced capabilities
392 stars 123 forks source link

Issue with Sort Order (DG.AdvancedDataGridView 1.2.27307.7) #93

Closed MattH-Work closed 2 years ago

MattH-Work commented 2 years ago

As can be seen below, the 'Days Remaining' column does not sort correctly It is detected as numerical, as the sort order offers up 'Smallest to Largest' etc All other columns sort correctl;y (Text, Dates & two other numerical) image

davidegironi commented 2 years ago

Hello, it seems it is a string column. Is should be a int column type. Take a look at the sample project, there you can find an "int" column ordered. Lokking at the code you will find type int for this column _dataTable.Columns.Add("int", typeof(int));

davidegironi commented 2 years ago

I was not able to reproduce the error. I close this issue.