Export (0) Print
Expand All

DataRowView.Row Property

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0
© 2015 Microsoft