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

            IndexList.Add(gc);
            return(gc);
        }
Esempio n. 2
0
        protected void BuildGroup(IndexList list)
        {
            string compVal = String.Empty;

            IndexList.Clear();
            IndexList childList = null;

            foreach (BaseComparer element in list)
            {
                string v = element.ObjectArray[0].ToString();
                if (compVal != v)
                {
                    childList = new IndexList();
                    GroupComparer gc = CreateGroupHeader(element);
                    gc.IndexList = childList;
                    CreateGroupeChildren(childList, element);
                }
                else
                {
                    CreateGroupeChildren(childList, element);
                }
                compVal = v;
            }
//			ShowIndexList(IndexList);
        }
Esempio n. 3
0
        private IndexList BuildChildList()
        {
            GroupComparer gc = this.indexList[this.indexList.CurrentPosition] as GroupComparer;

            if (gc == null)
            {
                return(null);
            }
            return(gc.IndexList);
        }
Esempio n. 4
0
        private IndexList BuildChildList()
        {
            IndexList     i  = store.IndexList;
            GroupComparer gc = i[store.CurrentPosition] as GroupComparer;

            if (gc == null)
            {
                return(null);
            }
            return(gc.IndexList);
        }
Esempio n. 5
0
		protected GroupComparer CreateGroupHeader (BaseComparer sc)
		{
			GroupComparer gc = new GroupComparer(sc.ColumnCollection,sc.ListIndex,sc.ObjectArray);
			IndexList.Add(gc);
			return gc;
		}