GrapeCity.Xaml.SpreadSheet.UI
ActiveSheetChanged Event (GcSpreadSheet)
Example 


GrapeCity.Xaml.SpreadSheet.UI Namespace > GcSpreadSheet Class : ActiveSheetChanged Event
Occurs when the user has changed the active sheet.
Syntax
'Declaration
 
Public Event ActiveSheetChanged As EventHandler
'Usage
 
Dim instance As GcSpreadSheet
Dim handler As EventHandler
 
AddHandler instance.ActiveSheetChanged, handler
public event EventHandler ActiveSheetChanged
Example
This example uses the ActiveSheetChanged 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 Object, e As EventArgs) Handles gcSpreadSheet1.ActiveSheetChanged
        ListBox1.Items.Add("ActiveSheetChanged")
    End Sub

    Private Sub gcSpreadSheet1_ActiveSheetChanging(sender As Object, e As CancelEventArgs) Handles gcSpreadSheet1.ActiveSheetChanging
ListBox1.Items.Add("ActiveSheetChanging")
    End Sub
See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members