I have two columns on UltraGrid
Expiry Month | Expiry Date---------------------------------Jan 2013 | 11/01/2013Apr 2013 | 15/04/2013Sept 2013 | 18/09/2013May 2013 | 05/05/2013Jan 2013 | 10/01/2013Jan 2013 | 17/01/2013Jan 2013 | 14/01/2013I want to sort Expiry Month column on the basis of Expiry Date values.
Expiry Month | Expiry Date---------------------------------Jan 2013 | 10/01/2013Jan 2013 | 11/01/2013Jan 2013 | 14/01/2013Jan 2013 | 17/01/2013Apr 2013 | 15/04/2013May 2013 | 05/05/2013Sept 2013 | 18/09/2013
Please suggest, what can i do ?
Thanks for the feedback. If you have any questions, feel free to write us
Thank you so much Georgi..
Hello Bharat,
At that moment I`m not able to find another solution, instead of implementation of IComparer class. I think that IComparer class is the easiest way to solve this task.
Let me know if you have any questions.
Georgi, thanks for reply and demo code, but i can't convert this column due to some string values like:
Expiry Month | Expiry Date---------------------------------No Expiry | -Apr 2013 | 15/04/2013Sept 2013 | 18/09/2013May 2013 | 05/05/2013Jan 2013 | 10/01/2013No Expiry | -Jan 2013 | 14/01/2013I want to sort Expiry Month column on the basis of Expiry Date values.
Expiry Month | Expiry Date Expiry Month | Expiry Date--------------------------------- ---------------------------------No Expiry | - Sept 2013 | 18/09/2013No Expiry | - May 2013 | 05/05/2013Jan 2013 | 10/01/2013 Apr 2013 | 15/04/2013Jan 2013 | 14/01/2013 Jan 2013 | 14/01/2013Apr 2013 | 15/04/2013 Jan 2013 | 10/01/2013May 2013 | 05/05/2013 No Expiry | -Sept 2013 | 18/09/2013 No Expiry | -
Please suggest, in this case what can i do ?
This is the sample