Provides data for a Cell's PropertyChanged event
Inheritance: CellEventArgsBase
Ejemplo n.º 1
0
 /// <summary>
 /// Raises the CellPropertyChanged event
 /// </summary>
 /// <param name="e">A CellEventArgs that contains the event data</param>
 internal void OnCellPropertyChanged(CellEventArgs e)
 {
     if (this.Table != null)
     {
         this.Table.OnCellPropertyChanged(e);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Raises the CellPropertyChanged event
        /// </summary>
        /// <param name="e">A CellEventArgs that contains the event data</param>
        protected internal virtual void OnCellPropertyChanged(CellEventArgs e)
        {
            if (this.CanRaiseEvents)
            {
                this.InvalidateCell(e.Row, e.Column);

                if (CellPropertyChanged != null)
                {
                    CellPropertyChanged(this, e);
                }

                if (e.EventType == CellEventType.CheckStateChanged)
                {
                    this.OnCellCheckChanged(new CellCheckBoxEventArgs(e.Cell, e.Column, e.Row));
                }
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Handler for a Cells PropertyChanged event
 /// </summary>
 /// <param name="sender">The object that raised the event</param>
 /// <param name="e">A CellEventArgs that contains the event data</param>
 private void cell_PropertyChanged(object sender, CellEventArgs e)
 {
     this.OnCellPropertyChanged(e);
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Raises the PropertyChanged event
        /// </summary>
        /// <param name="e">A CellEventArgs that contains the event data</param>
        protected virtual void OnPropertyChanged(CellEventArgs e)
        {
            e.SetColumn(this.Index);

            if (this.Row != null)
            {
                e.SetRow(this.Row.Index);
            }

            if (this.CanRaiseEvents)
            {
                if (this.Row != null)
                {
                    this.Row.OnCellPropertyChanged(e);
                }

                if (PropertyChanged != null)
                {
                    PropertyChanged(this, e);
                }
            }
        }