DataGridview column resizing issue
I have a datagridview where users can select which subset of columns to view. The problem I am facing is that when changing the displayed columns, the width of the columns is only determined by the width of the header cells, not the data in it. I have each column set to AutoSizeMode = AllCells.
If a new row is added, the columns become correct. But when the set of columns changes, the width values ββare wrong.
+1
source to share
2 answers