DataGridViewRowEventArgs 클래스
정의
행 관련 DataGridView 이벤트에 대한 데이터를 제공합니다.Provides data for row-related DataGridView events.
public ref class DataGridViewRowEventArgs : EventArgs
public class DataGridViewRowEventArgs : EventArgs
type DataGridViewRowEventArgs = class
inherit EventArgs
Public Class DataGridViewRowEventArgs
Inherits EventArgs
- 상속
예제
다음 코드 예제에서는이 형식의 사용을 보여 줍니다.The following code example illustrates the use of this type.
private void dataGridView1_DefaultValuesNeeded(object sender,
System.Windows.Forms.DataGridViewRowEventArgs e)
{
e.Row.Cells["Region"].Value = "WA";
e.Row.Cells["City"].Value = "Redmond";
e.Row.Cells["PostalCode"].Value = "98052-6399";
e.Row.Cells["Country"].Value = "USA";
e.Row.Cells["CustomerID"].Value = NewCustomerId();
}
Private Sub dataGridView1_DefaultValuesNeeded(ByVal sender As Object, _
ByVal e As System.Windows.Forms.DataGridViewRowEventArgs) _
Handles dataGridView1.DefaultValuesNeeded
With e.Row
.Cells("Region").Value = "WA"
.Cells("City").Value = "Redmond"
.Cells("PostalCode").Value = "98052-6399"
.Cells("Country").Value = "USA"
.Cells("CustomerID").Value = NewCustomerId()
End With
End Sub
설명
합니다 DataGridViewRowEventArgs 다음에 대 한 데이터를 제공 하는 클래스 DataGridView 이벤트:The DataGridViewRowEventArgs class provides data for the following DataGridView events:
생성자
DataGridViewRowEventArgs(DataGridViewRow) |
DataGridViewRowEventArgs 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the DataGridViewRowEventArgs class. |
속성
Row |
이벤트와 연결된 DataGridViewRow을 가져옵니다.Gets the DataGridViewRow associated with the event. |
메서드
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) |