DataRowView.Row Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the DataRow being viewed.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

Public ReadOnly Property Row As DataRow

Property Value

Type: System.Data.DataRow

The DataRow being viewed by the DataRowView.

The following example uses the Row property to print the value of the third column in each modified row of a DataView.

Private Sub ShowColumn3()
    Dim view As DataView = CType(dataGrid1.DataSource, DataView)

    ' Set the filter to display only those rows that were modified.
    view.RowStateFilter = DataViewRowState.ModifiedCurrent

    ' Change the value of the CompanyName column for each modified row.
    Dim rowView As DataRowView
    For Each rowView In  view
    Next rowView
End Sub

.NET Framework
Available since 1.1
Return to top