Bagikan melalui


DataRowChangeEventArgs.Row Properti

Definisi

Mendapatkan baris di mana tindakan telah terjadi.

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

Nilai Properti

Di DataRow mana tindakan telah terjadi.

Contoh

Contoh berikut menambahkan DataRowChangeEventHandler dan prosedur untuk menangani peristiwa saat baris diubah.


Private dataTable As DataTable

Private Sub [AddHandler]()
   dataTable = CType(DataGrid1.DataSource, DataTable)
   AddHandler dataTable.RowChanged, AddressOf Me.dataTable_Changed
End Sub

Private Sub dataTable_Changed _
(ByVal sender As System.Object, ByVal e As System.Data.DataRowChangeEventArgs)
   Console.WriteLine("Row Changed", e.Action, e.Row.Item(DataGrid1.CurrentCell.ColumnNumber))
End Sub

Berlaku untuk

Lihat juga