Spread Silverlight Documentation
ActiveSheetChanging Event (GcSpreadSheet)
Example 


Occurs when the user changes the active sheet.
Syntax
'Declaration
 
Public Event ActiveSheetChanging As System.EventHandler(Of CancelEventArgs)
'Usage
 
Dim instance As GcSpreadSheet
Dim handler As System.EventHandler(Of CancelEventArgs)
 
AddHandler instance.ActiveSheetChanging, handler
public event System.EventHandler<CancelEventArgs> ActiveSheetChanging
Event Data

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

PropertyDescription
Cancel  
Example
This example uses the ActiveSheetChanging event.
gcSpreadSheet1.SheetCount = 2;

private void gcSpreadSheet1_ActiveSheetChanged(object sender, EventArgs e)
        {
            listBox1.Items.Add("ActiveSheetChanged");
        }

private void gcSpreadSheet1_ActiveSheetChanging(object sender, System.ComponentModel.CancelEventArgs e)
        {
            listBox1.Items.Add("ActiveSheetChanging");            
        }
GcSpreadSheet1.SheetCount = 2

Private Sub GcSpreadSheet1_ActiveSheetChanged(sender As System.Object, e As System.EventArgs) Handles GcSpreadSheet1.ActiveSheetChanged
        ListBox1.Items.Add("ActiveSheetChanged")
    End Sub

    Private Sub GcSpreadSheet1_ActiveSheetChanging(sender As System.Object, e As System.ComponentModel.CancelEventArgs) Handles GcSpreadSheet1.ActiveSheetChanging
        ListBox1.Items.Add("ActiveSheetChanging")
    End Sub
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.