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


GrapeCity.Xaml.SpreadSheet.UI Namespace > GcSpreadSheet Class : SelectionChanged Event
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());
        }
See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members