DataRowView.Row プロパティ
アセンブリ: System.Data (system.data.dll 内)


Row プロパティを使用して、DataView の変更した各行の 3 番目の列の値を出力する例を次に示します。
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
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]); } }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDataRowView.Row プロパティを検索する場合は、下記のリンクをクリックしてください。

- DataRowView.Row プロパティのページへのリンク