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


Occurs when the selection of cells on the sheet is changed.
Syntax
'Declaration
 
Public Event SelectionChanged As EventHandler(Of EventArgs)
'Usage
 
Dim instance As GcSpreadSheet
Dim handler As EventHandler(Of EventArgs)
 
AddHandler instance.SelectionChanged, handler
public event EventHandler<EventArgs> SelectionChanged
Example
This example uses the SelectionChanged event.
private void gcSpreadSheet1_SelectionChanged(object sender, EventArgs e)
        {
            listBox1.Items.Add("SelectionChanged");
        }

private void gcSpreadSheet1_SelectionChanging(object sender, GrapeCity.Xaml.SpreadSheet.UI.SelectionChangingEventArgs e)
        {
            listBox1.Items.Add(e.NewSelections[0].Column.ToString());
            listBox1.Items.Add(e.OldSelections.Length.ToString());
        }
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options