Spread Windows Forms 6.0 Product Documentation
CellChanged Event
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : CellChanged Event


Glossary Item Box

Occurs when a change is made to a cell or range of cells on this sheet that may require the cell or range of cells be repainted.

Syntax

Visual Basic (Declaration) 
Public Event CellChanged As SheetViewEventHandler
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim handler As SheetViewEventHandler
 
AddHandler instance.CellChanged, handler
C# 
public event SheetViewEventHandler CellChanged

Event Data

The event handler receives an argument of type SheetViewEventArgs containing data related to this event. The following SheetViewEventArgs properties provide information specific to this event.

PropertyDescription
Column Gets the column index.
ColumnCount Gets the number of columns.
Row Gets the row index.
RowCount Gets the number of rows.

Remarks

This occurs if any content in or formatting of this cell has changed.

Example

This example illustrates the use of the event by returning the column when the cell changes.
C#Copy Code
private void sheetView1_CellChanged(object sender, FarPoint.Win.Spread.SheetViewEventArgs e)
{
    listBox1.Items.Add(e.Column.ToString());        
}
Visual BasicCopy Code
Private Sub SheetView1_CellChanged(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.SheetViewEventArgs) Handles SheetView1.CellChanged
    ListBox1.Items.Add(e.Column.ToString())
End Sub

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.