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

Glossary Item Box

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


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

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.


The RowChanged event fires when the data model fires a Changed event with RowsAdded or RowsRemoved, when the row axis model fires a Changed event with LayoutItemsUpdated,  
when the span model fires a Changed event with ModelUpdated for a range containing rows (column = -1), or when the style model fires a Changed event with CellsUpdated for a range containing rows (column = -1). The event does not fire for changes to values in a row in the data model.


This example illustrates the use of the event by returning the the row in which the change occurred.

C#Copy Code
private void fpSpread1_Sheet1_RowChanged(object sender, FarPoint.Win.Spread.SheetViewEventArgs e)
    label1.Text = e.Row.ToString();
Visual BasicCopy Code
Private Sub FpSpread1_Sheet1_RowChanged(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.SheetViewEventArgs) Handles
    Label1.Text = e.Row.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.