DataGridView.CellValidated イベントとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGridView.CellValidated イベントの意味・解説 

DataGridView.CellValidated イベント

メモ : このイベントは、.NET Framework version 2.0新しく追加されたものです。

セル検証完了した後に発生します

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

Public Event CellValidated As
 DataGridViewCellEventHandler
Dim instance As DataGridView
Dim handler As DataGridViewCellEventHandler

AddHandler instance.CellValidated, handler
public event DataGridViewCellEventHandler CellValidated
public:
event DataGridViewCellEventHandler^ CellValidated {
    void add (DataGridViewCellEventHandler^ value);
    void remove (DataGridViewCellEventHandler^ value);
}
/** @event */
public void add_CellValidated (DataGridViewCellEventHandler
 value)

/** @event */
public void remove_CellValidated (DataGridViewCellEventHandler
 value)
JScript では、イベント使用できますが、新規に宣言することはできません。
解説解説

このイベントの処理は、セルの値の検証後処理を行う場合に便利です。

イベント処理詳細については、「イベント利用」を参照してください

使用例使用例

CellValidated イベント使用して ErrorText プロパティクリアする方法を示すコード例次に示します。この例では、ユーザーが有効ではないデータセル入力した場合、CellValidating イベントErrorText設定します

Private Sub CellValidated(ByVal
 sender As Object, _
    ByVal e As DataGridViewCellEventArgs) _
    Handles DataGridView1.CellValidated

    ' Clear any error messages that may have been set in cell validation.
    DataGridView1.Rows(e.RowIndex).ErrorText = Nothing
End Sub
private void DataGridView1_CellValidated(object
 sender,
    DataGridViewCellEventArgs e)
{
    // Clear any error messages that may have been set in cell validation.
    DataGridView1.Rows[e.RowIndex].ErrorText = null;
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「DataGridView.CellValidated イベント」の関連用語

DataGridView.CellValidated イベントのお隣キーワード
検索ランキング

   

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



DataGridView.CellValidated イベントのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS