Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / GridViewRowCollection.cs / 1305376 / GridViewRowCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI.WebControls { using System; using System.Collections; ////// public class GridViewRowCollection : ICollection { private ArrayList _rows; ///Represents the collection of ///objects. /// public GridViewRowCollection(ArrayList rows) { this._rows = rows; } ///Initializes a new instance of the ///class. /// public int Count { get { return _rows.Count; } } ///Gets the number of rows in the collection. This property is read-only. ////// public bool IsReadOnly { get { return false; } } ///Gets a value that specifies whether rows in the ///can be /// modified. This property is read-only. /// public bool IsSynchronized { get { return false; } } ///Gets a value that indicates whether the ///is /// thread-safe. This property is read-only. /// public object SyncRoot { get { return this; } } ///Gets the object used to synchronize access to the collection. This property is read-only. ////// public GridViewRow this[int index] { get { return(GridViewRow)_rows[index]; } } ///Gets a ///at the specified index in the /// collection. /// public void CopyTo(GridViewRow[] array, int index) { ((ICollection)this).CopyTo(array, index); } ///Copies the contents of the entire collection into an ///appending /// at the specified index of the . void ICollection.CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } /// /// public IEnumerator GetEnumerator() { return _rows.GetEnumerator(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Creates an enumerator for the ///used to /// iterate through the collection.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CalendarDesigner.cs
- SHA256Managed.cs
- UxThemeWrapper.cs
- Stack.cs
- IQueryable.cs
- SqlConnectionHelper.cs
- Object.cs
- HttpDebugHandler.cs
- XPathDocumentIterator.cs
- DifferencingCollection.cs
- MetadataItemSerializer.cs
- CommandBinding.cs
- NativeMethods.cs
- RemoteWebConfigurationHostStream.cs
- HeaderCollection.cs
- ProbeMatchesMessageCD1.cs
- SingleObjectCollection.cs
- AsyncOperationContext.cs
- MenuItemBindingCollection.cs
- ScriptResourceDefinition.cs
- TextElementEnumerator.cs
- CustomLineCap.cs
- WebScriptMetadataFormatter.cs
- WorkflowMarkupSerializerMapping.cs
- SrgsOneOf.cs
- DataGridViewLinkCell.cs
- ImageField.cs
- IncrementalHitTester.cs
- ButtonChrome.cs
- Mappings.cs
- AdPostCacheSubstitution.cs
- DataBinding.cs
- ResolveNameEventArgs.cs
- SQLDecimalStorage.cs
- PtsHelper.cs
- TextEffect.cs
- TextElementCollection.cs
- HelpEvent.cs
- ControlIdConverter.cs
- _SslState.cs
- FlowStep.cs
- PersonalizationStateQuery.cs
- BitmapFrameEncode.cs
- SafeProcessHandle.cs
- AgileSafeNativeMemoryHandle.cs
- ScriptResourceAttribute.cs
- SessionStateSection.cs
- ClientSection.cs
- XmlILModule.cs
- _DomainName.cs
- OpenCollectionAsyncResult.cs
- UriTemplateTableMatchCandidate.cs
- HttpStreamMessageEncoderFactory.cs
- FormsAuthenticationUserCollection.cs
- TemplatedMailWebEventProvider.cs
- XmlDataSourceNodeDescriptor.cs
- AnchoredBlock.cs
- XmlTextAttribute.cs
- TextParagraph.cs
- AuthenticationModulesSection.cs
- Int64AnimationUsingKeyFrames.cs
- IteratorFilter.cs
- IntSecurity.cs
- CompatibleComparer.cs
- DataGridColumnHeadersPresenter.cs
- DBConcurrencyException.cs
- GPRECT.cs
- OleDbEnumerator.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- PeerContact.cs
- ConsumerConnectionPointCollection.cs
- UpDownEvent.cs
- isolationinterop.cs
- DSGeneratorProblem.cs
- RegexRunnerFactory.cs
- QueryGenerator.cs
- FontWeightConverter.cs
- InvalidCommandTreeException.cs
- _BufferOffsetSize.cs
- XmlCountingReader.cs
- PhoneCallDesigner.cs
- ButtonField.cs
- GeneralTransform2DTo3DTo2D.cs
- IndependentAnimationStorage.cs
- SettingsPropertyValue.cs
- DataBoundLiteralControl.cs
- StaticFileHandler.cs
- TextSelection.cs
- MouseGestureConverter.cs
- DPCustomTypeDescriptor.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- GCHandleCookieTable.cs
- Quaternion.cs
- IdentityValidationException.cs
- RightsManagementPermission.cs
- ManipulationPivot.cs
- WebPartTransformerCollection.cs
- EdmType.cs
- WebContext.cs
- FixedLineResult.cs