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 コントロール拡張するための推奨される手順



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

辞書ショートカット

すべての辞書の索引

「DataGridViewRowErrorTextNeededEventArgs」の関連用語

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

   

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



DataGridViewRowErrorTextNeededEventArgsのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS