How to automatically adjust column widths of DataGridView to available Display Area

DataGridView columns widths can be adjusted automatically to ensure that the full display area is used.

In column fill mode, the DataGridView control resizes its columns automatically so that they fill the width of the available display area.

 

In the Properties of  your DataGridView

 

Change the AutoSizeColumnMode to FILL

FillMode for AutoSizeColumnModeinDataGridView