Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewCellValueEventArgs.cs / 1 / DataGridViewCellValueEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.Diagnostics; ///public class DataGridViewCellValueEventArgs : EventArgs { private int rowIndex, columnIndex; private object val; internal DataGridViewCellValueEventArgs() { this.columnIndex = this.rowIndex = -1; } /// public DataGridViewCellValueEventArgs(int columnIndex, int rowIndex) { if (columnIndex < 0) { throw new ArgumentOutOfRangeException("columnIndex"); } if (rowIndex < 0) { throw new ArgumentOutOfRangeException("rowIndex"); } this.rowIndex = rowIndex; this.columnIndex = columnIndex; } /// public int ColumnIndex { get { return this.columnIndex; } } /// public int RowIndex { get { return this.rowIndex; } } /// public object Value { get { return this.val; } set { this.val = value; } } internal void SetProperties(int columnIndex, int rowIndex, object value) { Debug.Assert(columnIndex >= -1); Debug.Assert(rowIndex >= -1); this.columnIndex = columnIndex; this.rowIndex = rowIndex; this.val = value; } } } // 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.Diagnostics; ///public class DataGridViewCellValueEventArgs : EventArgs { private int rowIndex, columnIndex; private object val; internal DataGridViewCellValueEventArgs() { this.columnIndex = this.rowIndex = -1; } /// public DataGridViewCellValueEventArgs(int columnIndex, int rowIndex) { if (columnIndex < 0) { throw new ArgumentOutOfRangeException("columnIndex"); } if (rowIndex < 0) { throw new ArgumentOutOfRangeException("rowIndex"); } this.rowIndex = rowIndex; this.columnIndex = columnIndex; } /// public int ColumnIndex { get { return this.columnIndex; } } /// public int RowIndex { get { return this.rowIndex; } } /// public object Value { get { return this.val; } set { this.val = value; } } internal void SetProperties(int columnIndex, int rowIndex, object value) { Debug.Assert(columnIndex >= -1); Debug.Assert(rowIndex >= -1); this.columnIndex = columnIndex; this.rowIndex = rowIndex; this.val = value; } } } // 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
- RoutedUICommand.cs
- FlowDocumentScrollViewer.cs
- HyperLinkColumn.cs
- PointF.cs
- MarkupObject.cs
- KeyProperty.cs
- Ticks.cs
- WindowProviderWrapper.cs
- ReliableChannelBinder.cs
- ProfileSettingsCollection.cs
- metadatamappinghashervisitor.cs
- VerticalAlignConverter.cs
- SqlDuplicator.cs
- RoleGroupCollectionEditor.cs
- XXXOnTypeBuilderInstantiation.cs
- WebAdminConfigurationHelper.cs
- XamlWriter.cs
- ValueUtilsSmi.cs
- GACIdentityPermission.cs
- IpcChannelHelper.cs
- EntityCollectionChangedParams.cs
- SimpleNameService.cs
- CapiNative.cs
- BamlLocalizableResourceKey.cs
- TemplateBuilder.cs
- IssuanceLicense.cs
- SaveFileDialog.cs
- MobileControl.cs
- LogicalTreeHelper.cs
- Compilation.cs
- ListControlConvertEventArgs.cs
- DataServiceQueryContinuation.cs
- Bold.cs
- InputBinding.cs
- MailMessageEventArgs.cs
- UInt16Converter.cs
- ValueTypeFixupInfo.cs
- CustomAttribute.cs
- GlobalProxySelection.cs
- RegexFCD.cs
- MenuItemStyleCollectionEditor.cs
- DataBoundLiteralControl.cs
- ParentControlDesigner.cs
- _ProxyChain.cs
- ProgressChangedEventArgs.cs
- CacheEntry.cs
- HScrollProperties.cs
- CodeIterationStatement.cs
- FormatControl.cs
- WebPartDescription.cs
- SqlDataSource.cs
- EdmItemCollection.cs
- DrawingGroupDrawingContext.cs
- AccessDataSourceView.cs
- ModelProperty.cs
- CompatibleComparer.cs
- SmiMetaDataProperty.cs
- EntityDataSourceMemberPath.cs
- InternalConfigRoot.cs
- ArrayTypeMismatchException.cs
- PropertyExpression.cs
- RepeaterCommandEventArgs.cs
- ListManagerBindingsCollection.cs
- SharedPersonalizationStateInfo.cs
- RequestBringIntoViewEventArgs.cs
- DiagnosticTraceSource.cs
- Queue.cs
- AmbiguousMatchException.cs
- ToolStripMenuItemCodeDomSerializer.cs
- COSERVERINFO.cs
- ObjectQuery_EntitySqlExtensions.cs
- InProcStateClientManager.cs
- HTMLTagNameToTypeMapper.cs
- VisualTreeUtils.cs
- webeventbuffer.cs
- ObjectListCommand.cs
- SpecularMaterial.cs
- DesignerAdRotatorAdapter.cs
- ProcessDesigner.cs
- StateManagedCollection.cs
- OracleLob.cs
- FtpWebResponse.cs
- RepeaterItemEventArgs.cs
- TypeBrowser.xaml.cs
- CustomBindingElement.cs
- RepeaterCommandEventArgs.cs
- XmlnsDictionary.cs
- BitmapCodecInfo.cs
- SoapAttributeOverrides.cs
- WhitespaceRuleReader.cs
- SoapTransportImporter.cs
- PixelFormats.cs
- ElementAction.cs
- DataDocumentXPathNavigator.cs
- AsyncCompletedEventArgs.cs
- TextParagraphView.cs
- NamedServiceModelExtensionCollectionElement.cs
- DecimalMinMaxAggregationOperator.cs
- NeutralResourcesLanguageAttribute.cs
- DocumentViewer.cs