The project on which I'm currently working has two datagridviews that are meant to compare two versions of similar data (same number and name of columns). I'd like to resize all the columns so that they fit two criteria:
1) Autosize to fit data (that's easy) 2) So the columns are lined up such that for any column COL, gridA[COL].Width = Max(gridA[COL].Width, gridB[COL].Width), and the same for gridB[COL].Width
The problem I'm encountering is, when you do an auto-resize, the Width property doesn't show you the ACTUAL width (it displays the width before the auto-resize, I guess).