I have a DataGridView with a data source set to a data binding source. My problem is that I cannot change most of the columns. Some columns do not show the resize cursor, while two others: you can resize, not.
Here is what I tried:
DGV.AllowUsertoResizeColumns = True
DGV.AutoSizeColumnMode = None
DGV.RowHeadersWidthSizeMode = EnableResizing
DGV.Dock = Fill
AutoSizeMode = NoneSet
Resizable = True
dataGridView1.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.ColumnHeader)
Here is a screenshot of the properties of my DataGridView :
DataGridView
Any ideas?
After checking individual column parameters in gridview, I found that some cells still have
AutoSizeMode = AllCells
I changed this to:
AutoSizeMode = NotSet
and now I can resize all columns.