DataGridViewRowErrorTextNeededEventArgsとは? わかりやすく解説

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

DataGridViewRowErrorTextNeededEventArgs クラス

メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。

DataGridView コントロールの RowErrorTextNeeded イベントのデータを提供します。

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

Public Class DataGridViewRowErrorTextNeededEventArgs
    Inherits EventArgs
Dim instance As DataGridViewRowErrorTextNeededEventArgs
public class DataGridViewRowErrorTextNeededEventArgs
 : EventArgs
public ref class DataGridViewRowErrorTextNeededEventArgs
 : public EventArgs
public class DataGridViewRowErrorTextNeededEventArgs
 extends EventArgs
public class DataGridViewRowErrorTextNeededEventArgs
 extends EventArgs
解説解説

RowErrorTextNeeded イベントが発生するのは、DataGridView コントロールの DataSource プロパティが設定されているか、VirtualMode プロパティが true の場合のみです。RowErrorTextNeeded イベントの処理は、行の状態および行に含まれる値に応じて、行のエラーを判断する場合に便利です。

RowErrorTextNeeded イベントを処理して、ハンドラでエラー テキストを指定すると、DataGridView.ShowRowErrors プロパティが false に設定されていない限り、行ヘッダーにエラー グリフが表示されます。ユーザーがマウス ポインタをエラー グリフ上に移動すると、ツールヒントにエラー テキストが表示されます。

RowErrorTextNeeded イベントは、DataGridViewRow.ErrorText プロパティの値が取得されたときにも発生します。

RowIndex プロパティを使用すると、行の状態または値を確認でき、この情報を使用して ErrorText プロパティを変更または修正できます。このプロパティは、行の ErrorText プロパティの値によって初期化され、イベントの値によってオーバーライドされます。

RowErrorTextNeeded イベントは、多くのデータを処理するときに、複数行の ErrorText の値を設定することによるパフォーマンスの低下を防ぐために使用します。詳細については、「Windows フォーム DataGridView コントロールを拡張するための推奨される手順」を参照してください。

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

継承階層継承階層
System.Object
   System.EventArgs
    System.Windows.Forms.DataGridViewRowErrorTextNeededEventArgs
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewRowErrorTextNeededEventArgs メンバ
System.Windows.Forms 名前空間
DataGridView クラス
DataGridView.RowErrorTextNeeded イベント
DataGridView.DataSource プロパティ
DataGridView.VirtualMode プロパティ
DataGridView.ShowRowErrors プロパティ
DataGridViewRowErrorTextNeededEventHandler
ErrorText
DataGridViewRow.ErrorText プロパティ
DataGridView.OnRowErrorTextNeeded
その他の技術情報
Windows フォーム DataGridView コントロールを拡張するための推奨される手順

DataGridViewRowErrorTextNeededEventArgs プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ ErrorText 行のエラー テキストを取得または設定します。
パブリック プロパティ RowIndex RowErrorTextNeeded イベントを発生させた行を取得します。
参照参照

関連項目

DataGridViewRowErrorTextNeededEventArgs クラス
System.Windows.Forms 名前空間
DataGridView クラス
DataGridView.RowErrorTextNeeded イベント
DataGridView.DataSource プロパティ
DataGridView.VirtualMode プロパティ
DataGridView.ShowRowErrors プロパティ
DataGridViewRowErrorTextNeededEventHandler
ErrorText
DataGridViewRow.ErrorText プロパティ
DataGridView.OnRowErrorTextNeeded

その他の技術情報

Windows フォーム DataGridView コントロールを拡張するための推奨される手順

DataGridViewRowErrorTextNeededEventArgs メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

DataGridViewRowErrorTextNeededEventArgs クラス
System.Windows.Forms 名前空間
DataGridView クラス
DataGridView.RowErrorTextNeeded イベント
DataGridView.DataSource プロパティ
DataGridView.VirtualMode プロパティ
DataGridView.ShowRowErrors プロパティ
DataGridViewRowErrorTextNeededEventHandler
ErrorText
DataGridViewRow.ErrorText プロパティ
DataGridView.OnRowErrorTextNeeded

その他の技術情報

Windows フォーム DataGridView コントロールを拡張するための推奨される手順

DataGridViewRowErrorTextNeededEventArgs メンバ

DataGridView コントロールの RowErrorTextNeeded イベントのデータを提供します。

DataGridViewRowErrorTextNeededEventArgs データ型で公開されるメンバを以下の表に示します。


パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ ErrorText 行のエラー テキストを取得または設定します。
パブリック プロパティ RowIndex RowErrorTextNeeded イベントを発生させた行を取得します。
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

DataGridViewRowErrorTextNeededEventArgs クラス
System.Windows.Forms 名前空間
DataGridView クラス
DataGridView.RowErrorTextNeeded イベント
DataGridView.DataSource プロパティ
DataGridView.VirtualMode プロパティ
DataGridView.ShowRowErrors プロパティ
DataGridViewRowErrorTextNeededEventHandler
ErrorText
DataGridViewRow.ErrorText プロパティ
DataGridView.OnRowErrorTextNeeded

その他の技術情報

Windows フォーム DataGridView コントロールを拡張するための推奨される手順



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「DataGridViewRowErrorTextNeededEventArgs」の関連用語

DataGridViewRowErrorTextNeededEventArgsのお隣キーワード
検索ランキング

   

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



DataGridViewRowErrorTextNeededEventArgsのページの著作権

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

©2026 GRAS Group, Inc.RSS