Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / DataGridBeginningEditEventArgs.cs / 1305600 / DataGridBeginningEditEventArgs.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 cell enters edit mode.
///
public class DataGridBeginningEditEventArgs : EventArgs
{
///
/// Instantiates a new instance of this class.
///
/// The column of the cell that is about to enter edit mode.
/// The row container of the cell container that is about to enter edit mode.
/// The event arguments, if any, that led to the cell entering edit mode.
public DataGridBeginningEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs)
{
_dataGridColumn = column;
_dataGridRow = row;
_editingEventArgs = editingEventArgs;
}
///
/// When true, prevents the cell from entering edit mode.
///
public bool Cancel
{
get { return _cancel; }
set { _cancel = value; }
}
///
/// The column of the cell that is about to enter edit mode.
///
public DataGridColumn Column
{
get { return _dataGridColumn; }
}
///
/// The row container of the cell container that is about to enter edit mode.
///
public DataGridRow Row
{
get { return _dataGridRow; }
}
///
/// Event arguments, if any, that led to the cell entering edit mode.
///
public RoutedEventArgs EditingEventArgs
{
get { return _editingEventArgs; }
}
private bool _cancel;
private DataGridColumn _dataGridColumn;
private DataGridRow _dataGridRow;
private RoutedEventArgs _editingEventArgs;
}
}
// 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 cell enters edit mode.
///
public class DataGridBeginningEditEventArgs : EventArgs
{
///
/// Instantiates a new instance of this class.
///
/// The column of the cell that is about to enter edit mode.
/// The row container of the cell container that is about to enter edit mode.
/// The event arguments, if any, that led to the cell entering edit mode.
public DataGridBeginningEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs)
{
_dataGridColumn = column;
_dataGridRow = row;
_editingEventArgs = editingEventArgs;
}
///
/// When true, prevents the cell from entering edit mode.
///
public bool Cancel
{
get { return _cancel; }
set { _cancel = value; }
}
///
/// The column of the cell that is about to enter edit mode.
///
public DataGridColumn Column
{
get { return _dataGridColumn; }
}
///
/// The row container of the cell container that is about to enter edit mode.
///
public DataGridRow Row
{
get { return _dataGridRow; }
}
///
/// Event arguments, if any, that led to the cell entering edit mode.
///
public RoutedEventArgs EditingEventArgs
{
get { return _editingEventArgs; }
}
private bool _cancel;
private DataGridColumn _dataGridColumn;
private DataGridRow _dataGridRow;
private RoutedEventArgs _editingEventArgs;
}
}
// 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
- DataGridColumnCollection.cs
- TemplateBindingExtension.cs
- Transform3DGroup.cs
- NeutralResourcesLanguageAttribute.cs
- RemotingSurrogateSelector.cs
- EventEntry.cs
- TrackingDataItemValue.cs
- XmlSchemaException.cs
- TraceContext.cs
- MediaPlayerState.cs
- PersonalizationStateInfoCollection.cs
- NativeMethods.cs
- TreeNodeStyle.cs
- ResolveNextArgumentWorkItem.cs
- GeneratedCodeAttribute.cs
- TrackingValidationObjectDictionary.cs
- TransactionFlowBindingElement.cs
- ImageConverter.cs
- SchemaElement.cs
- XsltContext.cs
- ListControl.cs
- ButtonChrome.cs
- WebGetAttribute.cs
- Localizer.cs
- ServiceModelActivationSectionGroup.cs
- DesignerSerializationOptionsAttribute.cs
- Message.cs
- EdmValidator.cs
- DirectoryInfo.cs
- ConstraintEnumerator.cs
- DeflateStream.cs
- GeometryConverter.cs
- Number.cs
- RestClientProxyHandler.cs
- UpnEndpointIdentity.cs
- ChannelManager.cs
- FormatVersion.cs
- SchemaTableOptionalColumn.cs
- Filter.cs
- EntityDataSourceDesigner.cs
- WindowsGrip.cs
- ConfigurationLoader.cs
- Delegate.cs
- MachineKeyConverter.cs
- ToolboxItemLoader.cs
- ImageFormatConverter.cs
- DataObjectEventArgs.cs
- Condition.cs
- DbXmlEnabledProviderManifest.cs
- MergeLocalizationDirectives.cs
- TemplateBindingExtensionConverter.cs
- URL.cs
- XmlSubtreeReader.cs
- ControlTemplate.cs
- WsatRegistrationHeader.cs
- DllNotFoundException.cs
- ItemCheckEvent.cs
- DefaultValueAttribute.cs
- NavigationProgressEventArgs.cs
- EventListener.cs
- CompositeKey.cs
- OleDbPermission.cs
- LineProperties.cs
- MainMenu.cs
- AutomationEventArgs.cs
- InheritedPropertyChangedEventArgs.cs
- NavigationProgressEventArgs.cs
- MemberInfoSerializationHolder.cs
- RenderDataDrawingContext.cs
- FormViewInsertEventArgs.cs
- Vector.cs
- WindowsMenu.cs
- XmlDataImplementation.cs
- IIS7WorkerRequest.cs
- SetterBase.cs
- BinaryMethodMessage.cs
- XmlnsCache.cs
- EnumBuilder.cs
- TextSchema.cs
- FileDialogPermission.cs
- XPathNavigatorKeyComparer.cs
- GetPageCompletedEventArgs.cs
- KnownBoxes.cs
- WindowsSolidBrush.cs
- DynamicEndpointElement.cs
- WasHttpModulesInstallComponent.cs
- RenderingBiasValidation.cs
- SQLConvert.cs
- ListView.cs
- PriorityChain.cs
- IndentedWriter.cs
- ExecutionTracker.cs
- TreeView.cs
- CodeTypeReferenceSerializer.cs
- DesignerDataStoredProcedure.cs
- TextBox.cs
- PresentationSource.cs
- Sentence.cs
- RuleProcessor.cs
- ReaderContextStackData.cs