DataRowView.Row 속성

정의

표시되는 DataRow를 가져옵니다.

public:
 property System::Data::DataRow ^ Row { System::Data::DataRow ^ get(); };
public System.Data.DataRow Row { get; }
member this.Row : System.Data.DataRow
Public 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

적용 대상

추가 정보