Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / DataGridrowEditEndingEventArgs.cs / 1305600 / DataGridrowEditEndingEventArgs.cs
//----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//---------------------------------------------------------------------------
using System;
using System.Windows;
using System.Windows.Input;
namespace System.Windows.Controls
{
///
/// Provides information just before a row exits edit mode.
///
public class DataGridRowEditEndingEventArgs : EventArgs
{
///
/// Instantiates a new instance of this class.
///
/// The row container of the cell container that is about to exit edit mode.
/// The editing unit that is about to leave edit mode.
public DataGridRowEditEndingEventArgs(DataGridRow row, DataGridEditAction editAction)
{
_dataGridRow = row;
_editAction = editAction;
}
///
/// When true, prevents the row from exiting edit mode.
///
public bool Cancel
{
get { return _cancel; }
set { _cancel = value; }
}
///
/// The row container of the cell container that is about to exit edit mode.
///
public DataGridRow Row
{
get { return _dataGridRow; }
}
///
/// The edit action when leave edit mode.
///
public DataGridEditAction EditAction
{
get { return _editAction; }
}
private bool _cancel;
private DataGridRow _dataGridRow;
private DataGridEditAction _editAction;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//---------------------------------------------------------------------------
using System;
using System.Windows;
using System.Windows.Input;
namespace System.Windows.Controls
{
///
/// Provides information just before a row exits edit mode.
///
public class DataGridRowEditEndingEventArgs : EventArgs
{
///
/// Instantiates a new instance of this class.
///
/// The row container of the cell container that is about to exit edit mode.
/// The editing unit that is about to leave edit mode.
public DataGridRowEditEndingEventArgs(DataGridRow row, DataGridEditAction editAction)
{
_dataGridRow = row;
_editAction = editAction;
}
///
/// When true, prevents the row from exiting edit mode.
///
public bool Cancel
{
get { return _cancel; }
set { _cancel = value; }
}
///
/// The row container of the cell container that is about to exit edit mode.
///
public DataGridRow Row
{
get { return _dataGridRow; }
}
///
/// The edit action when leave edit mode.
///
public DataGridEditAction EditAction
{
get { return _editAction; }
}
private bool _cancel;
private DataGridRow _dataGridRow;
private DataGridEditAction _editAction;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlTriggerContext.cs
- WebScriptEndpointElement.cs
- ContainerSelectorActiveEvent.cs
- handlecollector.cs
- InstanceKeyNotReadyException.cs
- ObjectViewFactory.cs
- BitmapCacheBrush.cs
- XmlNullResolver.cs
- DesignParameter.cs
- XpsImage.cs
- GradientSpreadMethodValidation.cs
- SystemResourceKey.cs
- OdbcDataAdapter.cs
- TraceHelpers.cs
- DecoderFallbackWithFailureFlag.cs
- ServiceModelConfigurationSection.cs
- AutomationPatternInfo.cs
- DataViewManagerListItemTypeDescriptor.cs
- ProxyHelper.cs
- AnnotationResourceChangedEventArgs.cs
- errorpatternmatcher.cs
- TextDpi.cs
- WebProxyScriptElement.cs
- RoleGroupCollection.cs
- BinaryCommonClasses.cs
- Wizard.cs
- OperationContext.cs
- ThicknessKeyFrameCollection.cs
- ClockGroup.cs
- ProfileProvider.cs
- TreeBuilder.cs
- LifetimeServices.cs
- SocketPermission.cs
- TreeNode.cs
- DeclaredTypeValidatorAttribute.cs
- RegistryConfigurationProvider.cs
- TagNameToTypeMapper.cs
- StreamingContext.cs
- WebBrowserContainer.cs
- ColorIndependentAnimationStorage.cs
- SingletonConnectionReader.cs
- XmlDownloadManager.cs
- ListViewSortEventArgs.cs
- Maps.cs
- DifferencingCollection.cs
- MetadataSerializer.cs
- BitmapCacheBrush.cs
- GenericTypeParameterBuilder.cs
- FileDialog_Vista.cs
- WindowVisualStateTracker.cs
- UnsafeNativeMethods.cs
- DbgCompiler.cs
- Switch.cs
- Rectangle.cs
- EntityDesignerDataSourceView.cs
- InstancePersistenceCommand.cs
- ApplicationHost.cs
- VirtualizingPanel.cs
- StyleConverter.cs
- RSAPKCS1SignatureFormatter.cs
- CompilerResults.cs
- FileVersionInfo.cs
- ChangesetResponse.cs
- X509CertificateClaimSet.cs
- ConfigXmlElement.cs
- errorpatternmatcher.cs
- _ConnectStream.cs
- GenericIdentity.cs
- Privilege.cs
- StrokeNodeOperations.cs
- RegexStringValidator.cs
- ExeContext.cs
- DataRecordObjectView.cs
- NoResizeHandleGlyph.cs
- TouchPoint.cs
- UnsafeNativeMethodsTablet.cs
- DeclaredTypeElement.cs
- BookmarkManager.cs
- BufferedStream.cs
- LiteralLink.cs
- XmlSortKeyAccumulator.cs
- OdbcDataReader.cs
- InputScope.cs
- FileChangesMonitor.cs
- MsmqIntegrationMessagePool.cs
- SqlLiftWhereClauses.cs
- Canvas.cs
- RowType.cs
- XsltFunctions.cs
- SubMenuStyleCollection.cs
- PageCatalogPartDesigner.cs
- Win32MouseDevice.cs
- SqlBooleanMismatchVisitor.cs
- AddInStore.cs
- TableItemProviderWrapper.cs
- InstanceStore.cs
- PropertyDescriptorComparer.cs
- ChangeProcessor.cs
- ParallelQuery.cs
- FixedTextPointer.cs