Example #1
0
        protected GroupComparer CreateGroupHeader(BaseComparer sc)
        {
            GroupComparer gc = new GroupComparer(sc.ColumnCollection, sc.ListIndex, sc.ObjectArray);

            IndexList.Add(gc);
            return(gc);
        }
Example #2
0
        protected static List <BaseComparer> GenericSorter(List <BaseComparer> list)
        {
            BaseComparer        bc  = list[0];
            SortColumn          scc = bc.ColumnCollection[0] as SortColumn;
            ListSortDirection   sd  = scc.SortDirection;
            List <BaseComparer> lbc = null;

            if (sd == ListSortDirection.Ascending)
            {
                lbc = list.AsQueryable().AscendingOrder().ToList();
            }
            else
            {
                lbc = list.AsQueryable().DescendingOrder().ToList();
            }
            return(lbc);
        }
		protected static void CreateGroupedChildren(IndexList list,BaseComparer sc)
		{
			list.Add(sc);
		}
		protected GroupComparer CreateGroupHeader (BaseComparer sc)
		{
			GroupComparer gc = new GroupComparer(sc.ColumnCollection,sc.ListIndex,sc.ObjectArray);
			IndexList.Add(gc);
			return gc;
		}
		static string ExtractValue(BaseComparer element)
		{
			string val = String.Empty;
			GroupColumn gc = element.ColumnCollection[0] as GroupColumn;
			if (gc !=  null) {
				val = element.ObjectArray[0].ToString();
			}
			return val;
		}
Example #6
0
 protected static void CreateGroupeChildren(IndexList list, BaseComparer sc)
 {
     list.Add(sc);
 }