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

Glossary Item Box

Occurs when a change is made to a column or range of columns that may require the column or range of columns be repainted.


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

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.

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


This example illustrates the use of the event by returning the column when the column changes.
C#Copy Code
private void fpSpread1_Sheet1_ColumnChanged(object sender, FarPoint.Win.Spread.SheetViewEventArgs e)
    label1.Text = e.Column.ToString();
Visual BasicCopy Code
Private Sub FpSpread1_Sheet1_ColumnChanged(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.SheetViewEventArgs) Handles
    Label1.Text = e.Column.ToString()
End Sub


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.