combit List & Label 25 - .NET Online Web Help
Rows Property (ITable)
Example 


combit.ListLabel25.DataProviders Namespace > ITable Interface : Rows Property
This property is queried to get an IEnumerable interface of the rows contained in the table.
Syntax
'Declaration
 
ReadOnly Property Rows As IEnumerable(Of ITableRow)
Example
public IEnumerable<ITableRow> Rows
{
    get
    {
        return this as IEnumerable<ITableRow>;
    }
}

#region IEnumerable<ITableRow> Members

public IEnumerator<ITableRow> GetEnumerator()
{
    return new DataRowEnumeratorWrapper(_dataView.GetEnumerator());
}

#endregion

#region IEnumerable Members

IEnumerator IEnumerable.GetEnumerator()
{
    return new DataRowEnumeratorWrapper(_dataView.GetEnumerator());
}

#endregion
Public Readonly Property Rows() As IEnumerable(Of ITableRow)
    Get
        Return TryCast(Me, IEnumerable(Of ITableRow))
    End Get
End Property

#region IEnumerable<ITableRow> Members

Public Function GetEnumerator() As IEnumerator(Of ITableRow)
    Return New DataRowEnumeratorWrapper(_dataView.GetEnumerator())
End Function
#End Region

#region IEnumerable Members

Function GetEnumerator() As IEnumerator Implements IEnumerable.GetEnumerator
    Return New DataRowEnumeratorWrapper(_dataView.GetEnumerator())
End Function
#End Region
Requirements

Platforms: Windows 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

ITable Interface
ITable Members