| |||||||
DataGridItemCollection.GetEnumerator MethodSystem.Web.UI.WebControls Namespace DataGridItemCollection Class Returns an IEnumerator interface that contains all the DataGridItem objects in the collection. [ VB ] NotOverridable Public Function GetEnumerator ( ) As IEnumerator [ C# ] public IEnumerator GetEnumerator ( ); [ C++ ] public: __sealed IEnumerator* GetEnumerator ( ); [ JScript ] public function GetEnumerator ( ) : IEnumerator; Return ValueA System.Collections.IEnumerator that contains a list of DataGridItem objects in the collection. RemarksUse this method to create a System.Collections.IEnumerator that can be iterated through easily to get each item in the DataGridItemCollection. Use the IEnumerator.Current property to get the item currently pointed to in the collection. Use the IEnumerator.MoveNext method to move to the next item in the collection. Use the IEnumerator.Reset method to move the enumerator to the initial position.
ExampleThe following example demonstrates how to use the GetEnumerator method to create an IEnumerator interface that can be interated though to display the contents of the DataGridItemCollection.
See AlsoDataGridItemCollection Members |
| ||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme