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
- DebugHandleTracker.cs
- AssemblyContextControlItem.cs
- TextElementCollection.cs
- SessionPageStateSection.cs
- DataGridViewRowCollection.cs
- SimpleColumnProvider.cs
- NativeMethodsCLR.cs
- BindingOperations.cs
- ToolStripDesignerAvailabilityAttribute.cs
- XmlUtil.cs
- ToolStripPanelSelectionBehavior.cs
- DbSourceCommand.cs
- JoinElimination.cs
- DataGridViewColumnCollectionDialog.cs
- Interlocked.cs
- RoutedEventHandlerInfo.cs
- EpmSourcePathSegment.cs
- FormClosingEvent.cs
- StyleCollection.cs
- EventTask.cs
- AtomMaterializerLog.cs
- FlowLayout.cs
- CollectionExtensions.cs
- PrinterUnitConvert.cs
- CodeGenerationManager.cs
- Floater.cs
- WriteTimeStream.cs
- IPEndPoint.cs
- UpdatableGenericsFeature.cs
- MonitoringDescriptionAttribute.cs
- CultureMapper.cs
- Crc32.cs
- ButtonBaseAdapter.cs
- JoinSymbol.cs
- CodeExporter.cs
- ColumnResizeAdorner.cs
- InternalBufferOverflowException.cs
- CodeMemberProperty.cs
- AssemblyResourceLoader.cs
- AbstractDataSvcMapFileLoader.cs
- EdmType.cs
- Models.cs
- ComboBoxAutomationPeer.cs
- BaseParser.cs
- PartBasedPackageProperties.cs
- ActivityXRefPropertyEditor.cs
- FamilyTypefaceCollection.cs
- ClonableStack.cs
- FixUp.cs
- RtfFormatStack.cs
- GlyphsSerializer.cs
- NativeCppClassAttribute.cs
- SerializationSectionGroup.cs
- CurrencyWrapper.cs
- VoiceSynthesis.cs
- OutputCacheModule.cs
- PrimaryKeyTypeConverter.cs
- XmlSchema.cs
- odbcmetadatafactory.cs
- PaginationProgressEventArgs.cs
- Task.cs
- SettingsPropertyIsReadOnlyException.cs
- PropertyManager.cs
- ScalarOps.cs
- ConnectionsZoneDesigner.cs
- StringConverter.cs
- GridViewItemAutomationPeer.cs
- SecUtil.cs
- XmlEnumAttribute.cs
- Console.cs
- DataQuery.cs
- HMACSHA512.cs
- TextDataBindingHandler.cs
- XmlQualifiedNameTest.cs
- ResourceProviderFactory.cs
- SubordinateTransaction.cs
- TemplateBindingExtensionConverter.cs
- ClientScriptManagerWrapper.cs
- CursorEditor.cs
- PeerService.cs
- ConnectionOrientedTransportElement.cs
- Int32Converter.cs
- FileLevelControlBuilderAttribute.cs
- FaultReasonText.cs
- NCryptSafeHandles.cs
- PropertyInfoSet.cs
- ExpressionServices.cs
- QuaternionAnimationUsingKeyFrames.cs
- DependencyObject.cs
- PersistChildrenAttribute.cs
- WorkflowRuntime.cs
- UrlAuthFailedErrorFormatter.cs
- EncryptedPackageFilter.cs
- CheckedPointers.cs
- WeakEventTable.cs
- SelectionRange.cs
- GetLastErrorDetailsRequest.cs
- BindingUtils.cs
- Invariant.cs
- Guid.cs