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

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

DataGridView.CellStyleContentChanged イベント

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

セル スタイルの値の 1 つが変更された場合に発生します。

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

Public Event CellStyleContentChanged As
 DataGridViewCellStyleContentChangedEventHandler
Dim instance As DataGridView
Dim handler As DataGridViewCellStyleContentChangedEventHandler

AddHandler instance.CellStyleContentChanged, handler
public event DataGridViewCellStyleContentChangedEventHandler CellStyleContentChanged
public:
event DataGridViewCellStyleContentChangedEventHandler^ CellStyleContentChanged {
    void add (DataGridViewCellStyleContentChangedEventHandler^
 value);
    void remove (DataGridViewCellStyleContentChangedEventHandler^
 value);
}
/** @event */
public void add_CellStyleContentChanged (DataGridViewCellStyleContentChangedEventHandler
 value)

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

CellStyleContentChanged イベントは、次のプロパティの 1 つによって返される DataGridViewCellStyle オブジェクトのプロパティ値が変更された場合に発生します。

  • DataGridViewCell.Style

  • DataGridViewColumn.DefaultCellStyle

  • DataGridViewRow.DefaultCellStyle

  • DataGridView.RowHeadersDefaultCellStyle

  • DataGridView.RowsDefaultCellStyle

  • DataGridView.ColumnHeadersDefaultCellStyle

  • DataGridView.AlternatingRowsDefaultCellStyle

  • DataGridView.DefaultCellStyle

ただし、これらのプロパティの 1 つが異なる DataGridViewCellStyle に設定されている場合、対応する PropertyNameChanged イベントは発生しますが、CellStyleContentChanged イベントは発生しません。

行、列、およびセル プロパティの場合、PropertyNameChanged イベントの名前は "Row"、"Column"、または "Cell" で始まります (RowDefaultCellStyleChanged など)。

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

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridView クラス
DataGridView メンバ
System.Windows.Forms 名前空間
DataGridViewCellStyle
DataGridViewCellStyleContentChangedEventHandler
DataGridViewCellStyleContentChangedEventArgs
DataGridView.OnCellStyleContentChanged
その他の技術情報
Windows フォーム DataGridView コントロールでのセルのスタイル
DataGridView コントロール (Windows フォーム)



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

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

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

   

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



DataGridView.CellStyleContentChanged イベントのページの著作権

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

©2026 GRAS Group, Inc.RSS