I have one DataGridView and whose Dock property is set to "Fill". So when I resize my form then DataGridViewwill resize. In my case, I set DataGridViewcolumn width with a fixed value. Like so:
dgGrid.Columns[0].Width = 50;
dgGrid.Columns[1].Width = 126;
dgGrid.Columns[2].Width = 100;
I am trying to the columns in my DataGridView to resize proportionally when the control is resized. How can I do it programatically when my grid column with is set like above? Please help me with code.Thanks.