How I can resize width of column to the end of the datagridview??
Printable View
How I can resize width of column to the end of the datagridview??
The grid itself has an AutoSizeColumnsMode property and each column has an AutoSizeMode property. You should read the applicable MSDN documentation to find out what you can do with them. It may be as simple as using Fill for the last column, but there are other options too.
I resolve problem using:
DataGridView1.Columns(0).Width
I would really advise you to follow the advise offered by jmcilhinney. Here are the relevant links.
DataGridView.AutoSizeColumnsMode Property
DataGridViewAutoSizeColumnsMode Enumeration