DataRowView.Row 属性   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取正被查看的 DataRow。
public:
 property System::Data::DataRow ^ Row { System::Data::DataRow ^ get(); };public System.Data.DataRow Row { get; }member this.Row : System.Data.DataRowPublic ReadOnly Property Row As DataRow属性值
正被 DataRow 查看的 DataRowView。
示例
以下示例使用 Row 属性打印 的每个修改行 DataView中的第三列的值。
private void ShowColumn3()
{
    DataView view = (DataView) dataGrid1.DataSource;
    // 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.
    foreach(DataRowView rowView in view)
    {
        Console.WriteLine(rowView.Row[2]);
    }
}
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
        Console.WriteLine(rowView.Row(2))
    Next rowView
End Sub