I have a WinForms application with DataGridView
control. My control has five
columns (say "Name", "Address", "Phone" etc)
I am not happy with default column width. I want to have more control over column appearance. What I want is to be able to do one of the following:
Please suggest - which property to use and how.
You can use the DataGridViewColumn.Width property to do it:
DataGridViewColumn column = dataGridView.Columns[0];
column.Width = 60;
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumn.width.aspx