OnEditModeStarting Method (DataPresenterBase)

Occurs when the ActiveCell is about to enter edit mode
Protected Overridable Sub OnEditModeStarting( _
   ByVal args As EditModeStartingEventArgs _
protected virtual void OnEditModeStarting( 
   EditModeStartingEventArgs args



Before a Cell can be edited it must first be activated by either setting its Cell.IsActive property to true or by setting the control's ActiveCell property.

Note: Once the Cell is activated you can cause it 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 property returns true.


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