Spread Windows Forms 11.0 Product Documentation
Changed Event (SheetView)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : Changed Event
Occurs when a change is made to the sheet that may require the entire sheet to be repainted (as with DefaultStyle or AlternatingRows).
Syntax
'Declaration
 
Public Event Changed As SheetViewEventHandler
'Usage
 
Dim instance As SheetView
Dim handler As SheetViewEventHandler
 
AddHandler instance.Changed, handler
public event SheetViewEventHandler Changed
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
Gets the column index.  
Gets the number of columns.  
Gets the row index.  
Gets the number of rows.  
Example

This example illustrates the use of the event by returning the column in which the change to the sheet occurred.

private void fpSpread1_Sheet1_Changed(object sender, FarPoint.Win.Spread.SheetViewEventArgs e)
{
    label1.Text = e.Column.ToString();
}
Private Sub FpSpread1_Sheet1_Changed(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.SheetViewEventArgs) Handles FpSpread1_Sheet1.Changed
    Label1.Text = e.Column.ToString()
End Sub
See Also