GrapeCity.Windows.SpreadSheet.UI Namespace > GcSpreadSheet Class : SelectionChanging Event |
'Declaration Public Event SelectionChanging As System.EventHandler(Of SelectionChangingEventArgs)
'Usage Dim instance As GcSpreadSheet Dim handler As System.EventHandler(Of SelectionChangingEventArgs) AddHandler instance.SelectionChanging, handler
public event System.EventHandler<SelectionChangingEventArgs> SelectionChanging
The event handler receives an argument of type SelectionChangingEventArgs containing data related to this event. The following SelectionChangingEventArgs properties provide information specific to this event.
Property | Description |
---|---|
NewSelections | Gets the new selection ranges. |
OldSelections | Gets the old selection ranges. |
private void gcSpreadSheet1_SelectionChanged(object sender, EventArgs e) { listBox1.Items.Add("SelectionChanged"); } private void gcSpreadSheet1_SelectionChanging(object sender, GrapeCity.Windows.SpreadSheet.UI.SelectionChangingEventArgs e) { listBox1.Items.Add(e.NewSelections[0].Column.ToString()); listBox1.Items.Add(e.OldSelections.Length.ToString()); }
Private Sub GcSpreadSheet1_SelectionChanged(sender As System.Object, e As System.EventArgs) Handles GcSpreadSheet1.SelectionChanged ListBox1.Items.Add("SelectionChanged") End Sub Private Sub GcSpreadSheet1_SelectionChanging(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.SelectionChangingEventArgs) Handles GcSpreadSheet1.SelectionChanging ListBox1.Items.Add(e.NewSelections(0).Column.ToString()) ListBox1.Items.Add(e.OldSelections.Length.ToString()) End Sub
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)