I want to Sort my UltraWinGrid in such a Way that for a Column Called "Grade_Type" i would like to sort my grades
as
A
R
B
i could do acesending and descending but not in the above format., I have looked at Implementing hte I comparer Interface but wasnt sucessful in coding hte same. So if you just gimme a direction it would be great.
THanks
K
Thanks a lot for the help
I got it this Way and it worked out.
public class GradeTypeComparer : IComparer{private List<string> _gradeTypes = new List<string>(new string[ { "A", "R", "B" });
public GradeTypeComparer()
{
}public int Compare(object x, object y){UltragridCell xCell= (UltraGridCell)x;
UltragridCell yCell = (UltraGridCell)y;return _gradeTypes.IndexOf(xCell.Value.ToString()) - _gradeTypes.IndexOf(yCell.Value.Tostring());}}
Thankskartik