Пример #1
0
        private static bool IsGroupLevelDescriptionsInDetailConfigurations(DetailConfigurationCollection configurations, GroupLevelDescriptionCollection groupLevelDescriptions)
        {
            bool returnValue = false;

            int detailConfigurationCount = configurations.Count;

            for (int i = 0; i < detailConfigurationCount; i++)
            {
                DetailConfiguration detailConfiguration = configurations[i];

                if (detailConfiguration.DetailConfigurations != null)
                {
                    returnValue = GroupingHelper.IsGroupLevelDescriptionsInDetailConfigurations(detailConfiguration.DetailConfigurations, groupLevelDescriptions);
                }

                if (returnValue)
                {
                    break;
                }

                returnValue = (detailConfiguration.GroupLevelDescriptions == groupLevelDescriptions);

                if (returnValue)
                {
                    break;
                }
            }

            return(returnValue);
        }
Пример #2
0
        public static bool IsColumnManagerCellInDataGridContext(DataGridContext dataGridContext, ColumnManagerCell cell)
        {
            DataGridContext cellDataGridContext = DataGridControl.GetDataGridContext(cell);

            Debug.Assert(cellDataGridContext != null);

            if ((dataGridContext != null) &&
                (cellDataGridContext != null) &&
                (dataGridContext.GroupLevelDescriptions == cellDataGridContext.GroupLevelDescriptions))
            {
                return(true);
            }

            return(GroupingHelper.IsGroupLevelDescriptionsInDetailConfigurations(dataGridContext.DetailConfigurations, cellDataGridContext.GroupLevelDescriptions));
        }