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
- FixedLineResult.cs
- ContextBase.cs
- DateTimeFormatInfo.cs
- TdsParserStateObject.cs
- PropertyDescriptorCollection.cs
- ParentUndoUnit.cs
- ConvertEvent.cs
- DllNotFoundException.cs
- MimeReturn.cs
- TextReader.cs
- ContentType.cs
- WasNotInstalledException.cs
- TextEditorSpelling.cs
- DataServiceRequest.cs
- ProcessHostConfigUtils.cs
- DataProtection.cs
- EntityObject.cs
- CssStyleCollection.cs
- MenuItemBindingCollection.cs
- BindingExpressionBase.cs
- XPathException.cs
- ToolStripSeparatorRenderEventArgs.cs
- UTF8Encoding.cs
- DataRowChangeEvent.cs
- NotConverter.cs
- MenuAdapter.cs
- PathSegment.cs
- BooleanFacetDescriptionElement.cs
- DataGridViewCheckBoxCell.cs
- SqlCaseSimplifier.cs
- cookieexception.cs
- Profiler.cs
- InputBinder.cs
- InheritablePropertyChangeInfo.cs
- ObjectDataSourceFilteringEventArgs.cs
- PreservationFileWriter.cs
- DataGridViewDataConnection.cs
- SqlClientMetaDataCollectionNames.cs
- ListControlDesigner.cs
- ApplicationFileParser.cs
- PkcsMisc.cs
- MouseActionConverter.cs
- URLString.cs
- RoleManagerEventArgs.cs
- x509store.cs
- SqlDuplicator.cs
- SiteOfOriginPart.cs
- CapabilitiesPattern.cs
- XsltCompileContext.cs
- NamespaceTable.cs
- PersistChildrenAttribute.cs
- TextServicesManager.cs
- DelegatingTypeDescriptionProvider.cs
- storepermissionattribute.cs
- RenderDataDrawingContext.cs
- CustomError.cs
- SynchronizationValidator.cs
- Pipe.cs
- SharedConnectionInfo.cs
- FunctionDescription.cs
- SelectionPatternIdentifiers.cs
- SharedUtils.cs
- DocumentXmlWriter.cs
- XmlToDatasetMap.cs
- LocalFileSettingsProvider.cs
- SystemUnicastIPAddressInformation.cs
- HttpBufferlessInputStream.cs
- Geometry3D.cs
- ExcludeFromCodeCoverageAttribute.cs
- TableParagraph.cs
- TypeForwardedToAttribute.cs
- TextElementCollection.cs
- SqlTransaction.cs
- GC.cs
- XmlEntityReference.cs
- DeflateStream.cs
- SpinWait.cs
- WaitHandleCannotBeOpenedException.cs
- ObjectReaderCompiler.cs
- DelegatingTypeDescriptionProvider.cs
- Stream.cs
- TextAnchor.cs
- DataViewListener.cs
- SynchronizedDispatch.cs
- XmlAttribute.cs
- TextEvent.cs
- IncrementalHitTester.cs
- MatchingStyle.cs
- _ListenerResponseStream.cs
- PreviewKeyDownEventArgs.cs
- AsymmetricAlgorithm.cs
- XmlSerializableReader.cs
- EmbossBitmapEffect.cs
- KnownIds.cs
- KeysConverter.cs
- Token.cs
- MouseCaptureWithinProperty.cs
- TraceContextEventArgs.cs
- DatagridviewDisplayedBandsData.cs
- RSAProtectedConfigurationProvider.cs