DataGridViewRowEventArgs DataGridViewRowEventArgs DataGridViewRowEventArgs DataGridViewRowEventArgs Class

定義

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
継承
DataGridViewRowEventArgsDataGridViewRowEventArgsDataGridViewRowEventArgsDataGridViewRowEventArgs

次のコード例は、この型の使用を示しています。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(DataGridViewRow) DataGridViewRowEventArgs(DataGridViewRow) DataGridViewRowEventArgs(DataGridViewRow)

DataGridViewRowEventArgs クラスの新しいインスタンスを初期化します。Initializes a new instance of the DataGridViewRowEventArgs class.

プロパティ

Row Row Row Row

イベントに関連付けられている DataGridViewRow を取得します。Gets the DataGridViewRow associated with the event.

メソッド

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

指定したオブジェクトが、現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

既定のハッシュ関数として機能します。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

現在のインスタンスの Type を取得します。Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object.

(Inherited from Object)

適用対象

こちらもご覧ください