I have a DataGrid on a Win Form that display perfectly when I initially set the datasource. The AutoSizeColumnsMode is "DisplayCells". When I change the datasource during runtime the rows do not autosize unless I re-order a column. Does anyone know how to fix this? Also note that the DataGrid is on a different Tab than the button that calls the update.
The only code that I ever use to populate the grid is:
dgUnPrinted.DataSource = TableName;
dgUnPrinted.Refresh();