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
80
Sorting AlphaNumeric text in UltraWebGrid
posted

Hi,

I found a solution to sorting a WinGrid using SortComparer, however I cannot find a solution for a WebGrid.  I am trying to sort a grid so it will sort like it does in excel.  Currently it is sorting values as 1%, 11% 2% etc rather than 1%, 2%, 11%.  The reason why I cannot simply make it a integer field is because there are columns with text in them such as - or N/A. 

 Does anyone have a solution?

 Thanks in advance.


Dan

Parents
  • 14049
    Offline posted
    You can try to use custom sorting method. Here is how:
    Server side
    http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR3.5/html/WebGrid_Defining_a_Custom_Sorting_Algorithm_Server_Side.html
    Client side
    http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR3.5/html/WebGrid_Defining_a_Custom_Sorting_Algorithm_Client_Side.html
Reply Children
No Data