DataRowChangeEventArgs 클래스
정의
RowChanged, RowChanging, OnRowDeleting(DataRowChangeEventArgs) 및 OnRowDeleted(DataRowChangeEventArgs) 이벤트에 대한 데이터를 제공합니다.Provides data for the RowChanged, RowChanging, OnRowDeleting(DataRowChangeEventArgs), and OnRowDeleted(DataRowChangeEventArgs) events.
public ref class DataRowChangeEventArgs : EventArgs
public class DataRowChangeEventArgs : EventArgs
type DataRowChangeEventArgs = class
inherit EventArgs
Public Class DataRowChangeEventArgs
Inherits EventArgs
- 상속
예제
다음 예에서는 DataRowChangeEventHandler 행이 변경 될 때 이벤트를 처리 하는 및 프로시저를 추가 합니다.The following example adds a DataRowChangeEventHandler and the procedure to handle the event when a row is changed.
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
설명
RowChanged,, RowChanging OnRowDeleted 및 이벤트는 OnRowDeleting 에 대해 동작이 수행 될 때 발생 합니다 DataRow .The RowChanged, RowChanging, OnRowDeleted, and OnRowDeleting events occur when an action is performed on a DataRow.
생성자
DataRowChangeEventArgs(DataRow, DataRowAction) |
DataRowChangeEventArgs 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the DataRowChangeEventArgs class. |
속성
Action |
DataRow에서 수행한 작업을 가져옵니다.Gets the action that has occurred on a DataRow. |
Row |
작업을 수행한 행을 가져옵니다.Gets the row upon which an action has occurred. |
메서드
Equals(Object) |
지정된 개체가 현재 개체와 같은지 확인합니다.Determines whether the specified object is equal to the current object. (다음에서 상속됨 Object) |
GetHashCode() |
기본 해시 함수로 작동합니다.Serves as the default hash function. (다음에서 상속됨 Object) |
GetType() |
현재 인스턴스의 Type을 가져옵니다.Gets the Type of the current instance. (다음에서 상속됨 Object) |
MemberwiseClone() |
현재 Object의 단순 복사본을 만듭니다.Creates a shallow copy of the current Object. (다음에서 상속됨 Object) |
ToString() |
현재 개체를 나타내는 문자열을 반환합니다.Returns a string that represents the current object. (다음에서 상속됨 Object) |