SpreadsheetGear The Performance Spreadsheet Component Company 
RangeSelectionChanging Event
See Also 
SpreadsheetGear.Windows.Forms Namespace > WorkbookView Class : RangeSelectionChanging Event
Occurs when the user is attempting to change the range selection and provides the ability to cancel the change.

Syntax

C# 
[DescriptionAttribute("Occurs when the range selection is about to change.")]
[CategoryAttribute("Action")]
public event RangeSelectionChangingEventHandler RangeSelectionChanging()

Event Data

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

PropertyDescription
Cancel Gets or sets the value which specifies whether the event will be canceled.
RangeSelection Returns the new range selection.

Remarks

This event does not occur when the active tab is about to change.

The RangeSelectionChanging event is always invoked on the thread which created the workbook view control, and a lock is always acquired on the workbook set associated with the workbook view control before RangeSelectionChanging is invoked.

Requirements

Platforms: Windows 98, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family. SpreadsheetGear for .NET 1.x requires the Microsoft .NET Framework 1.1 or .NET 2.0. SpreadsheetGear for .NET 2006 requires the Microsoft .NET Framework 2.0.

See Also