I have a grid in which one column have string values and it's default sorting behavior is based on "Text sorting" but I want to apply custom sorting (for COL 4 in attached sample) like
COL 4 (ascending)LENGTHSHORTSHORTFIXEDBREADTHBREADTH
COL 4 (descending)BREADTHBREADTHFIXEDSHORTSHORTLENGTH
Also if I group by same column then sorting will be same order (not default sorting).
Hello Bharat,
Thank you for posting in our forum.
UltraGrid’s column exposes SortComparer property. By setting this property to you custom class you may sort the column in your specific order. More about this property you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.1/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v15.1~Infragistics.Win.UltraWinGrid.UltraGridColumn~SortComparer.html.
In the attached sample I have created a one column grid which implements SortComparer. Please check my sample and let me know if this is what you are looking for or if I am missing something.
Please let me know if you have any additional questions.
Thank you for using Infragistics Controls.