Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
255
UltraGrid not sorting as expected
posted

Is there a setting to tell the grid to sort differently? When I click the column to sort this is the outcome of an integer field. It seems as if it is only looking at the first digit in the number and not the number as a whole?

TIA,

-Ted

13

17

21

25

38

42

8

Parents
  • 71886
    Suggested Answer
    Offline posted

    Hello Ted,

    I believe that this is due to the fact that your coulmn's datatype is 'System.String' and not 'Int' or 'Decimal' for example. So the WinGrid control is comparing these 'digits' as strings actually. Please change the datatype to Int16 for example and try this again.

Reply Children