Sorting is showing wrong.
Hello..
Please help me to check with this below.
sorting is wrong at my side. What should i do for sorting?
I didn't do anything about sorting in code. What I need to do for sorting?
Prices are showing like this order. 3.090,2.900,11.520,1.510,1.2962,0.162
It is showing like based on first character and compare. It should be 11.520,3.090,2.900,1.510,1.2962,0.162.
-
Hello,
It seems that the property returns prices is of the string type. The string type implements IComparable interface that is used by the grid to compare two values. If you change this type to decimal or double, you'll get correct value comparing. Note: comparing two primitive types (int, double, decimal, etc) is much more efficient and performant than comparing two strings.
Kind regards,
Dapfor0
Please sign in to leave a comment.
Comments
1 comment