DataGridViewRowEventArgs.Row プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGridViewRowEventArgs.Row プロパティの意味・解説 

DataGridViewRowEventArgs.Row プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

イベント関連付けられている DataGridViewRow を取得します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Dim instance As DataGridViewRowEventArgs
Dim value As DataGridViewRow

value = instance.Row
public DataGridViewRow Row { get; }
public:
property DataGridViewRow^ Row {
    DataGridViewRow^ get ();
}
/** @property */
public DataGridViewRow get_Row ()
public function get Row
 () : DataGridViewRow

プロパティ
イベント関連付けられている DataGridViewRow

使用例使用例

この型の使用方法次のコード例示します

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("Region").Value = "NA"
        .Cells("Country").Value = "USA"
        .Cells("CustomerID").Value = NewCustomerId()
    End With

End Sub
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["Region"].Value = "NA";
    e.Row.Cells["Country"].Value = "USA";
    e.Row.Cells["CustomerID"].Value = NewCustomerId();
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewRowEventArgs クラス
DataGridViewRowEventArgs メンバ
System.Windows.Forms 名前空間
DataGridView クラス
DataGridViewRow クラス


このページでは「.NET Framework クラス ライブラリ リファレンス」からDataGridViewRowEventArgs.Row プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDataGridViewRowEventArgs.Row プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDataGridViewRowEventArgs.Row プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

DataGridViewRowEventArgs.Row プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DataGridViewRowEventArgs.Row プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS