Version

OnCellDeactivating Method

Occurs before a Cell is de-activated
Syntax
'Declaration
 
Protected Overridable Sub OnCellDeactivating( _
   ByVal args As CellDeactivatingEventArgs _
) 
protected virtual void OnCellDeactivating( 
   CellDeactivatingEventArgs args
)

Parameters

args
Remarks

If the Cell was in edit mode, i.e. its Cell.IsInEditMode property returned true, de-activating it either by setting the its Cell.IsActive property to false or by changing the ActiveCell or ActiveRecord property will cause it to end edit mode.

Note: You can cause the ActiveCell to enter edit mode by calling ExecuteCommand(RoutedCommand) with the DataPresenterCommands' DataPresenterCommands.StartEditMode command. The cell will only enter edit mode if its corresponding Field's Field.AllowEditResolved returns true.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also