Spread Windows Forms 8.0 Product Documentation
ColumnChanged Event
Example 


Occurs when a change is made to a column or range of columns that may require the column or range of columns be repainted.
Syntax
'Declaration
 
Public Event ColumnChanged As SheetViewEventHandler
'Usage
 
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.

PropertyDescription
Column Gets the column index.
ColumnCount Gets the number of columns.
Row Gets the row index.
RowCount Gets the number of rows.
Example
This example illustrates the use of the event by returning the column when the column changes.
private void fpSpread1_Sheet1_ColumnChanged(object sender, FarPoint.Win.Spread.SheetViewEventArgs e)
{
    label1.Text = e.Column.ToString();
}
Private Sub FpSpread1_Sheet1_ColumnChanged(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.SheetViewEventArgs) Handles
FpSpread1_Sheet1.ColumnChanged
    Label1.Text = e.Column.ToString()
End Sub
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

Reference

SheetView Class
SheetView Members

 

 


Copyright © GrapeCity, inc. All rights reserved.