DataRowChangeEventArgs(DataRow, DataRowAction) 생성자

정의

DataRowChangeEventArgs 클래스의 새 인스턴스를 초기화합니다.

public:
 DataRowChangeEventArgs(System::Data::DataRow ^ row, System::Data::DataRowAction action);
public DataRowChangeEventArgs(System.Data.DataRow row, System.Data.DataRowAction action);
new System.Data.DataRowChangeEventArgs : System.Data.DataRow * System.Data.DataRowAction -> System.Data.DataRowChangeEventArgs
Public Sub New (row As DataRow, action As DataRowAction)

매개 변수

row
DataRow

DataRow 동작이 발생하는 시점입니다.

action
DataRowAction

값 중 DataRowAction 하나입니다.

예제

다음 예제에서는 행이 변경될 때 이벤트를 처리하는 a 및 프로시저를 추가 DataRowChangeEventHandler 합니다.


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

적용 대상

추가 정보