protected GroupComparer CreateGroupHeader(BaseComparer sc) { GroupComparer gc = new GroupComparer(sc.ColumnCollection, sc.ListIndex, sc.ObjectArray); IndexList.Add(gc); return(gc); }
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); }
private IndexList BuildChildList() { GroupComparer gc = this.indexList[this.indexList.CurrentPosition] as GroupComparer; if (gc == null) { return(null); } return(gc.IndexList); }
private IndexList BuildChildList() { IndexList i = store.IndexList; GroupComparer gc = i[store.CurrentPosition] as GroupComparer; if (gc == null) { return(null); } return(gc.IndexList); }
protected GroupComparer CreateGroupHeader (BaseComparer sc) { GroupComparer gc = new GroupComparer(sc.ColumnCollection,sc.ListIndex,sc.ObjectArray); IndexList.Add(gc); return gc; }