DataGridViewTextBoxColumn.CellTemplate プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Dim instance As DataGridViewTextBoxColumn Dim value As DataGridViewCell value = instance.CellTemplate instance.CellTemplate = value
public: virtual property DataGridViewCell^ CellTemplate { DataGridViewCell^ get () override; void set (DataGridViewCell^ value) override; }
/** @property */ public DataGridViewCell get_CellTemplate () /** @property */ public void set_CellTemplate (DataGridViewCell value)
public override function get CellTemplate () : DataGridViewCell public override function set CellTemplate (value : DataGridViewCell)
列に含まれる他のすべてのセルがモデルとする DataGridViewCell。


DataGridViewTextBoxColumn クラスのコンストラクタは、このプロパティを新しく作成された DataGridViewTextBoxCell に初期化します。
![]() |
---|
セル テンプレートのプロパティを変更しても、列の既存のセルのユーザー インターフェイス (UI) に直ちに反映されることはありません。この変更は、列が再生成されたとき (列を並べ替えたり DataGridView.InvalidateColumn メソッドを呼び出したりした場合など) に、初めて反映されます。 |

このプロパティに類似している DataGridViewColumn.CellTemplate プロパティの使用方法を次のコード例に示します。次の例は「方法 : Windows フォーム DataGridView コントロールの列を操作する」で取り上げている例の一部です。

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDataGridViewTextBoxColumn.CellTemplate プロパティを検索する場合は、下記のリンクをクリックしてください。

- DataGridViewTextBoxColumn.CellTemplate プロパティのページへのリンク