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
20
Sort a Ultragrid column by numeric value
posted

the datasource for the ultragrid is SQL data rows. one of the columns "SortOrder" is int type in SQL. 

 when I click on the header of this column, it does the sorting, but it sorts the column treating the numbers as strings. The result is like 1 10 11 12 .....2 20 21...

 How do I config the column setting to enable numeric sort?

 Thank you,

Parents
  • 469350
    Verified Answer
    Offline posted

    If the data is being sorted as strings, then it must be string data in the grid. Your data source must somehow be converting the ints into strings for some reason.

Reply Children