Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewCellFormattingEventArgs.cs / 1 / DataGridViewCellFormattingEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms
{
using System;
using System.Drawing;
using System.ComponentModel;
///
public class DataGridViewCellFormattingEventArgs : ConvertEventArgs
{
private int columnIndex, rowIndex;
private DataGridViewCellStyle cellStyle;
private bool formattingApplied;
///
public DataGridViewCellFormattingEventArgs(int columnIndex,
int rowIndex,
object value,
Type desiredType,
DataGridViewCellStyle cellStyle) : base(value, desiredType)
{
if (columnIndex < -1)
{
throw new ArgumentOutOfRangeException("columnIndex");
}
if (rowIndex < -1)
{
throw new ArgumentOutOfRangeException("rowIndex");
}
this.columnIndex = columnIndex;
this.rowIndex = rowIndex;
this.cellStyle = cellStyle;
}
///
public DataGridViewCellStyle CellStyle
{
get
{
return this.cellStyle;
}
set
{
this.cellStyle = value;
}
}
///
public int ColumnIndex
{
get
{
return this.columnIndex;
}
}
///
public bool FormattingApplied
{
get
{
return this.formattingApplied;
}
set
{
this.formattingApplied = value;
}
}
///
public int RowIndex
{
get
{
return this.rowIndex;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms
{
using System;
using System.Drawing;
using System.ComponentModel;
///
public class DataGridViewCellFormattingEventArgs : ConvertEventArgs
{
private int columnIndex, rowIndex;
private DataGridViewCellStyle cellStyle;
private bool formattingApplied;
///
public DataGridViewCellFormattingEventArgs(int columnIndex,
int rowIndex,
object value,
Type desiredType,
DataGridViewCellStyle cellStyle) : base(value, desiredType)
{
if (columnIndex < -1)
{
throw new ArgumentOutOfRangeException("columnIndex");
}
if (rowIndex < -1)
{
throw new ArgumentOutOfRangeException("rowIndex");
}
this.columnIndex = columnIndex;
this.rowIndex = rowIndex;
this.cellStyle = cellStyle;
}
///
public DataGridViewCellStyle CellStyle
{
get
{
return this.cellStyle;
}
set
{
this.cellStyle = value;
}
}
///
public int ColumnIndex
{
get
{
return this.columnIndex;
}
}
///
public bool FormattingApplied
{
get
{
return this.formattingApplied;
}
set
{
this.formattingApplied = value;
}
}
///
public int RowIndex
{
get
{
return this.rowIndex;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- baseaxisquery.cs
- QuaternionValueSerializer.cs
- DataBoundControl.cs
- ViewStateModeByIdAttribute.cs
- LogStore.cs
- EntityWithChangeTrackerStrategy.cs
- SafeCryptContextHandle.cs
- BaseDataBoundControl.cs
- InvalidChannelBindingException.cs
- EraserBehavior.cs
- TdsParserSessionPool.cs
- DictionaryContent.cs
- ContextQuery.cs
- Expressions.cs
- AuthenticationManager.cs
- HwndStylusInputProvider.cs
- UnionExpr.cs
- XmlILAnnotation.cs
- NoClickablePointException.cs
- WebPartHelpVerb.cs
- JsonReader.cs
- TableAdapterManagerHelper.cs
- EventSetterHandlerConverter.cs
- IndexedString.cs
- HeaderPanel.cs
- DesignerDeviceConfig.cs
- KeyValueConfigurationCollection.cs
- oledbconnectionstring.cs
- MultiTargetingUtil.cs
- IgnoreSectionHandler.cs
- DataRowView.cs
- TabControlEvent.cs
- InlineCategoriesDocument.cs
- FixedDocumentPaginator.cs
- LineGeometry.cs
- OperationExecutionFault.cs
- Inflater.cs
- DrawingVisualDrawingContext.cs
- dataobject.cs
- JoinSymbol.cs
- DesignerSerializerAttribute.cs
- safelinkcollection.cs
- ImmutableObjectAttribute.cs
- control.ime.cs
- Geometry.cs
- FormCollection.cs
- HostingEnvironmentWrapper.cs
- ModelFunctionTypeElement.cs
- SerializableAttribute.cs
- FileDialog.cs
- FieldDescriptor.cs
- SmtpAuthenticationManager.cs
- BaseCodeDomTreeGenerator.cs
- ProviderUtil.cs
- MiniAssembly.cs
- SecuritySessionSecurityTokenProvider.cs
- ClientSession.cs
- SafeRightsManagementPubHandle.cs
- SplitContainer.cs
- DynamicDocumentPaginator.cs
- AspNetSynchronizationContext.cs
- MediaElement.cs
- HasCopySemanticsAttribute.cs
- SafeRightsManagementQueryHandle.cs
- DoubleAnimation.cs
- AutomationElementIdentifiers.cs
- ChangeInterceptorAttribute.cs
- BinaryUtilClasses.cs
- ImportCatalogPart.cs
- ConfigurationValidatorBase.cs
- brushes.cs
- GenerateScriptTypeAttribute.cs
- ExpressionServices.cs
- ADRoleFactory.cs
- CollectionBase.cs
- InputScope.cs
- TypedServiceOperationListItem.cs
- DataViewSetting.cs
- VirtualPathData.cs
- CategoryGridEntry.cs
- NotifyCollectionChangedEventArgs.cs
- ResourceReferenceKeyNotFoundException.cs
- HideDisabledControlAdapter.cs
- GeneralTransform3DGroup.cs
- ReadWriteSpinLock.cs
- WizardForm.cs
- Win32PrintDialog.cs
- ObjectSet.cs
- SizeConverter.cs
- StructuralType.cs
- TransactionContextValidator.cs
- DbConnectionPoolCounters.cs
- HyperLinkField.cs
- SemanticResultValue.cs
- FrameworkContentElement.cs
- SqlProviderServices.cs
- SQLDateTime.cs
- InvokePattern.cs
- XmlWellformedWriter.cs
- XmlLoader.cs