Exemplo n.º 1
0
        /// <summary>
        /// Raises the ColumnPropertyChanged event
        /// </summary>
        /// <param name="e">A ColumnEventArgs that contains the event data</param>
        internal void OnColumnPropertyChanged(ColumnEventArgs e)
        {
            if (e.EventType == ColumnEventType.WidthChanged || e.EventType == ColumnEventType.VisibleChanged)
            {
                this.Columns.RecalcWidthCache();
            }

            if (this.CanRaiseEvents)
            {
                if (this.Table != null)
                {
                    this.Table.OnColumnPropertyChanged(e);
                }
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Raises the PropertyChanged event
        /// </summary>
        /// <param name="e">A ColumnEventArgs that contains the event data</param>
        protected virtual void OnPropertyChanged(ColumnEventArgs e)
        {
            if (this.ColumnModel != null)
            {
                e.SetIndex(this.ColumnModel.Columns.IndexOf(this));
            }

            if (this.CanRaiseEvents)
            {
                if (this.ColumnModel != null)
                {
                    this.ColumnModel.OnColumnPropertyChanged(e);
                }

                if (PropertyChanged != null)
                {
                    PropertyChanged(this, e);
                }
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Raises the PropertyChanged event
        /// </summary>
        /// <param name="e">A ColumnEventArgs that contains the event data</param>
        protected virtual void OnPropertyChanged(ColumnEventArgs e)
        {
            if (this.ColumnModel != null)
            {
                e.SetIndex(this.ColumnModel.Columns.IndexOf(this));
            }

            if (this.CanRaiseEvents)
            {
                if (this.ColumnModel != null)
                {
                    this.ColumnModel.OnColumnPropertyChanged(e);
                }

                if (PropertyChanged != null)
                {
                    PropertyChanged(this, e);
                }
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// Raises the ColumnPropertyChanged event
        /// </summary>
        /// <param name="e">A ColumnEventArgs that contains the event data</param>
        internal void OnColumnPropertyChanged(ColumnEventArgs e)
        {
            if (e.EventType == ColumnEventType.WidthChanged || e.EventType == ColumnEventType.VisibleChanged)
            {
                this.Columns.RecalcWidthCache();
            }

            if (this.CanRaiseEvents)
            {
                if (this.Table != null)
                {
                    this.Table.OnColumnPropertyChanged(e);
                }
            }
        }