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

DataGridViewElement クラス

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

DataGridView コントロールの要素の基本クラスを提供します。

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

Public Class DataGridViewElement
Dim instance As DataGridViewElement
public class DataGridViewElement
public ref class DataGridViewElement
public class DataGridViewElement
public class DataGridViewElement
解説解説

.NET Framework では、DataGridViewElement から派生する 2 つの特殊なクラスが用意されています。1 つは個々の要素を表す DataGridViewCell、もう 1 つは一連のグループ化されたサブ要素を表す DataGridViewBand です。

継承階層継承階層
System.Object
  System.Windows.Forms.DataGridViewElement
     System.Windows.Forms.DataGridViewBand
     System.Windows.Forms.DataGridViewCell
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewElement メンバ
System.Windows.Forms 名前空間
DataGridView クラス
DataGridViewCell クラス
DataGridViewBand クラス

DataGridViewElement コンストラクタ

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

DataGridViewElement クラスの新しいインスタンスを初期化します。

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

Dim instance As New DataGridViewElement
public DataGridViewElement ()
public:
DataGridViewElement ()
public DataGridViewElement ()
public function DataGridViewElement ()
解説解説

このコンストラクタは、DataGridView プロパティを null 参照 (Visual Basic では Nothing) に設定します。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewElement クラス
DataGridViewElement メンバ
System.Windows.Forms 名前空間
DataGridView クラス
DataGridViewCell クラス
DataGridViewBand クラス
DataGridView

DataGridViewElement プロパティ


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

  名前 説明
パブリック プロパティ DataGridView この要素に関連付けられている DataGridView コントロールを取得します。
パブリック プロパティ State 要素のユーザー インターフェイス (UI) の状態を取得します。
参照参照

関連項目

DataGridViewElement クラス
System.Windows.Forms 名前空間
DataGridView クラス
DataGridViewCell クラス
DataGridViewBand クラス

DataGridViewElement メソッド


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

プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド Finalize  Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object の簡易コピーを作成します。 ( Object から継承されます。)
プロテクト メソッド OnDataGridViewChanged 要素が別の DataGridView に関連付けられたときに呼び出されます。
プロテクト メソッド RaiseCellClick DataGridView.CellClick イベントを発生させます。
プロテクト メソッド RaiseCellContentClick DataGridView.CellContentClick イベントを発生させます。
プロテクト メソッド RaiseCellContentDoubleClick DataGridView.CellContentDoubleClick イベントを発生させます。
プロテクト メソッド RaiseCellValueChanged DataGridView.CellValueChanged イベントを発生させます。
プロテクト メソッド RaiseDataError DataGridView.DataError イベントを発生させます。
プロテクト メソッド RaiseMouseWheel Control.MouseWheel イベントを発生させます。
参照参照

関連項目

DataGridViewElement クラス
System.Windows.Forms 名前空間
DataGridView クラス
DataGridViewCell クラス
DataGridViewBand クラス

DataGridViewElement メンバ

DataGridView コントロールの要素の基本クラスを提供します。

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


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド DataGridViewElement DataGridViewElement クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ DataGridView この要素に関連付けられている DataGridView コントロールを取得します。
パブリック プロパティ State 要素のユーザー インターフェイス (UI) の状態を取得します。
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド Finalize  Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object の簡易コピーを作成します。 (Object から継承されます。)
プロテクト メソッド OnDataGridViewChanged 要素が別の DataGridView に関連付けられたときに呼び出されます。
プロテクト メソッド RaiseCellClick DataGridView.CellClick イベントを発生させます。
プロテクト メソッド RaiseCellContentClick DataGridView.CellContentClick イベントを発生させます。
プロテクト メソッド RaiseCellContentDoubleClick DataGridView.CellContentDoubleClick イベントを発生させます。
プロテクト メソッド RaiseCellValueChanged DataGridView.CellValueChanged イベントを発生させます。
プロテクト メソッド RaiseDataError DataGridView.DataError イベントを発生させます。
プロテクト メソッド RaiseMouseWheel Control.MouseWheel イベントを発生させます。
参照参照

関連項目

DataGridViewElement クラス
System.Windows.Forms 名前空間
DataGridView クラス
DataGridViewCell クラス
DataGridViewBand クラス



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「DataGridViewElement」の関連用語

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

   

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



DataGridViewElementのページの著作権

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

©2026 GRAS Group, Inc.RSS