Spread Silverlight Documentation
LeftColumnChanged Event (GcSpreadSheet)
Example 


Occurs when the left column changes.
Syntax
'Declaration
 
Public Event LeftColumnChanged As System.EventHandler(Of ViewportEventArgs)
'Usage
 
Dim instance As GcSpreadSheet
Dim handler As System.EventHandler(Of ViewportEventArgs)
 
AddHandler instance.LeftColumnChanged, handler
public event System.EventHandler<ViewportEventArgs> LeftColumnChanged
Event Data

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

PropertyDescription
NewIndexGets the index of the new viewport index.  
OldIndexGets the index of the previous viewport index.  
ViewportIndexGets the index of the viewport in which the change occurred.  
Example
This example uses the LeftColumnChanged event.
private void gcSpreadSheet1_LeftColumnChanged(object sender, GrapeCity.Windows.SpreadSheet.UI.ViewportEventArgs e)
        {
         listBox1.Items.Add(e.OldIndex.ToString());
         listBox1.Items.Add(e.NewIndex.ToString());
        }

private void gcSpreadSheet1_TopRowChanged(object sender, GrapeCity.Windows.SpreadSheet.UI.ViewportEventArgs e)
        {
         listBox1.Items.Add(e.OldIndex.ToString());
         listBox1.Items.Add(e.NewIndex.ToString());
        }
Private Sub GcSpreadSheet1_LeftColumnChanged(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.ViewportEventArgs) Handles GcSpreadSheet1.LeftColumnChanged
        ListBox1.Items.Add(e.OldIndex.ToString())
        ListBox1.Items.Add(e.NewIndex.ToString())
    End Sub

Private Sub GcSpreadSheet1_TopRowChanged(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.ViewportEventArgs) Handles GcSpreadSheet1.TopRowChanged
        ListBox1.Items.Add(e.OldIndex.ToString())
        ListBox1.Items.Add(e.NewIndex.ToString())
    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.