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

Dim instance As DataGridViewBand Dim value As Boolean value = instance.Frozen instance.Frozen = value
/** @property */ public boolean get_Frozen () /** @property */ public void set_Frozen (boolean value)
バンドをビューからスクロールできない場合は true。それ以外の場合は false。既定値は false です。


列または行内のセルのバンドを固定するコード例を次に示します。この例では、固定するバンドを指定するために、固定されたバンドの既定のセル スタイルも変更されます。このコード例は、DataGridViewBand クラスのトピックで取り上げているコード例の一部分です。
' Freeze the first row. Private Sub Button4_Click(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Button4.Click FreezeBand(dataGridView.Rows(0)) End Sub Private Sub FreezeColumn(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Button5.Click FreezeBand(dataGridView.Columns(1)) End Sub Private Shared Sub FreezeBand(ByVal band As DataGridViewBand) band.Frozen = True Dim style As DataGridViewCellStyle = New DataGridViewCellStyle() style.BackColor = Color.WhiteSmoke band.DefaultCellStyle = style End Sub
// Freeze the first row. private void Button4_Click(object sender, System.EventArgs e) { FreezeBand(dataGridView.Rows[0]); } private void Button5_Click(object sender, System.EventArgs e) { FreezeBand(dataGridView.Columns[1]); } private static void FreezeBand(DataGridViewBand band) { band.Frozen = true; DataGridViewCellStyle style = new DataGridViewCellStyle(); style.BackColor = Color.WhiteSmoke; band.DefaultCellStyle = style; }

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に収録されているすべての辞書からDataGridViewBand.Frozen プロパティを検索する場合は、下記のリンクをクリックしてください。

- DataGridViewBand.Frozen プロパティのページへのリンク