Beispiel #1
0
 internal void Clear()
 {
     for (int i = 0; i < parents.Count; i++)
     {
         DataGridState dgs = parents[i] as DataGridState;
         dgs.RemoveChangeNotification();
     }
     parents.Clear();
     rowHeights.Clear();
     totalHeight = 0;
     SetParentCount(0);
 }
        internal DataGridState PopTop()
        {
            if (this.parentsCount < 1)
            {
                return(null);
            }
            this.SetParentCount(this.parentsCount - 1);
            DataGridState state = (DataGridState)this.parents[this.parentsCount];

            state.RemoveChangeNotification();
            this.parents.RemoveAt(this.parentsCount);
            return(state);
        }
Beispiel #3
0
        /// <include file='doc\DataGridParentRows.uex' path='docs/doc[@for="DataGridParentRows.PopTop"]/*' />
        /// <devdoc>
        ///      Similar to GetTopParent() but also removes it.
        /// </devdoc>
        internal DataGridState PopTop()
        {
            if (parentsCount < 1)
            {
                return(null);
            }

            SetParentCount(parentsCount - 1);
            DataGridState ret = (DataGridState)parents[parentsCount];

            ret.RemoveChangeNotification();
            parents.RemoveAt(parentsCount);
            return(ret);
        }