I am populating a DataGridView control on a Windows Form (C# 2.0 not WPF).
My goal is to display a grid that neatly fills all available width with cells - i.e. no un
After adding the data to the grid add the following code which will adjust the column according to the length of data in each cell
dataGrid1.AutoResizeColumns(); dataGrid1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
Here is the Result