Using DataGridView with VB.Net 2008. I would like to freeze the left column so that when/if scrolled this column still remains in place. can someone tell me how to do this?
+6
A:
How to: Freeze Columns in the Windows Forms DataGridView Control:
To freeze a column programmatically
Set the
DataGridViewColumn.Frozenproperty totrue:Me.dataGridView1.Columns("AddToCartButton").Frozen = TrueHow to: Freeze Columns in the Windows Forms DataGridView Control Using the Designer:
To freeze a column using the designer
- Click the smart tag glyph on the upper-right corner of the
DataGridViewcontrol, and then select Edit Columns. - Select a column from the Selected Columns list.
- In the Column Properties grid, set the
Frozenproperty totrue.
- Click the smart tag glyph on the upper-right corner of the
Joey
2009-12-14 22:32:56