Beispiel #1
0
        internal void SetPinPosition(
            GridViewColumnGroup group,
            PinnedColumnPosition position,
            GridViewTemplate template)
        {
            group.pinPosition = position;
            group.OnNotifyPropertyChanged("PinPosition");
            foreach (GridViewColumnGroup group1 in (Collection <GridViewColumnGroup>)group.Groups)
            {
                this.SetPinPosition(group1, position, template);
            }
            if (template == null || group.Groups.Count != 0)
            {
                return;
            }
            foreach (GridViewColumnGroupRow row in (Collection <GridViewColumnGroupRow>)group.Rows)
            {
                foreach (string columnName in (Collection <string>)row.ColumnNames)
                {
                    GridViewColumn column = (GridViewColumn)template.Columns[columnName];
                    column.SuspendPropertyNotifications();
                    column.PinPosition = position;
                    column.ResumePropertyNotifications();
                }
            }
            if (this.IsSuspended || template == null)
            {
                return;
            }
            PropertyChangedEventArgs changedEventArgs = new PropertyChangedEventArgs("PinPosition");

            template.OnViewChanged((object)this, new DataViewChangedEventArgs(ViewChangedAction.ColumnGroupPropertyChanged, (object)changedEventArgs));
        }
Beispiel #2
0
        public void EnsureVisible()
        {
            GridViewTemplate viewTemplate = this.row.ViewTemplate;

            viewTemplate.OnViewChanged((object)viewTemplate, new DataViewChangedEventArgs(ViewChangedAction.EnsureCellVisible, (IList) new object[2]
            {
                (object)this.row,
                (object)this.column
            }));
        }
Beispiel #3
0
        public void EndEdit()
        {
            GridViewTemplate viewTemplate = this.row.ViewTemplate;

            if (!this.row.IsCurrent || !this.column.IsCurrent)
            {
                return;
            }
            viewTemplate.OnViewChanged((object)viewTemplate, new DataViewChangedEventArgs(ViewChangedAction.EndEdit, (IList) new object[2]
            {
                (object)this.row,
                (object)this.column
            }));
        }
Beispiel #4
0
        public void BeginEdit()
        {
            GridViewTemplate viewTemplate = this.row.ViewTemplate;

            if (!this.row.IsCurrent || !this.column.IsCurrent)
            {
                GridViewSynchronizationService.RaiseCurrentChanged(viewTemplate, this.row, this.column, true);
            }
            viewTemplate.OnViewChanged((object)viewTemplate, new DataViewChangedEventArgs(ViewChangedAction.BeginEdit, (IList) new object[2]
            {
                (object)this.row,
                (object)this.column
            }));
        }
Beispiel #5
0
        private void CallViewChanged(string propertyName)
        {
            if (this.IsSuspended)
            {
                return;
            }
            GridViewTemplate template = this.FindTemplate();

            if (template == null)
            {
                return;
            }
            PropertyChangedEventArgs changedEventArgs = new PropertyChangedEventArgs(propertyName);

            template.OnViewChanged((object)this, new DataViewChangedEventArgs(ViewChangedAction.ColumnGroupPropertyChanged, (object)changedEventArgs));
        }