G
garyusenet
I'm following a sql/vb tutorial which contains the following code which
is meant to resize the datagrid view so that the columns take the
correct width for the content within them.
It doesn't work the syntax seems to be nonsense according to VS2005 so
can someone suggest what I need to replace it with?
Thanks...
dgvStatus.AutoSizeColumns
(DataGridViewAutoSizeColumnCriteria.HeaderAndDisplayedRows)
p.s. dgvStatus is the name of a datagrid control i have on the form.
is meant to resize the datagrid view so that the columns take the
correct width for the content within them.
It doesn't work the syntax seems to be nonsense according to VS2005 so
can someone suggest what I need to replace it with?
Thanks...
dgvStatus.AutoSizeColumns
(DataGridViewAutoSizeColumnCriteria.HeaderAndDisplayedRows)
p.s. dgvStatus is the name of a datagrid control i have on the form.