C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : BeforeSelChange Event |
'Declaration
<C1DescriptionAttribute("Fires before the selection changes (Row, Col, RowSel, ColSel properties).")> Public Event BeforeSelChange As RangeEventHandler
'Usage
Dim instance As C1FlexGridBase Dim handler As RangeEventHandler AddHandler instance.BeforeSelChange, handler
[C1Description("Fires before the selection changes (Row, Col, RowSel, ColSel properties).")] public event RangeEventHandler BeforeSelChange
[C1Description("Fires before the selection changes (Row, Col, RowSel, ColSel properties).")] public: event RangeEventHandler^ BeforeSelChange
This event fires before the RowSel and ColSel properties change, either as a result of user actions or through code. It allows you to prevent the selection of certain cells, thus creating "protected" ranges on a grid.
To prevent the selection of a range, you also need to handle the BeforeRowColChange event, which is fired before the Row and Col properties change.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2