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

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

DataGridView.ColumnWidthChanged イベント

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

列の Width プロパティの値が変更され場合発生します

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

Public Event ColumnWidthChanged As
 DataGridViewColumnEventHandler
Dim instance As DataGridView
Dim handler As DataGridViewColumnEventHandler

AddHandler instance.ColumnWidthChanged, handler
public event DataGridViewColumnEventHandler ColumnWidthChanged
public:
event DataGridViewColumnEventHandler^ ColumnWidthChanged {
    void add (DataGridViewColumnEventHandler^ value);
    void remove (DataGridViewColumnEventHandler^ value);
}
/** @event */
public void add_ColumnWidthChanged (DataGridViewColumnEventHandler
 value)

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

このイベント使用方法次のコード例示します次の例は「方法 : Windows フォームの DataGridView コントロールの行の外観カスタマイズする」で取り上げている例の一部です。

' Forces the control to repaint itself when the user 
' manually changes the width of a column.
Sub dataGridView1_ColumnWidthChanged(ByVal
 sender As Object, _
    ByVal e As DataGridViewColumnEventArgs)
 _
    Handles dataGridView1.ColumnWidthChanged

    Me.dataGridView1.Invalidate()

End Sub 'dataGridView1_ColumnWidthChanged
// Forces the control to repaint itself when the user 
// manually changes the width of a column.
void dataGridView1_ColumnWidthChanged(object sender,
    DataGridViewColumnEventArgs e)
{
    this.dataGridView1.Invalidate();
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS