int colWidth = Int16.Parse("150"); if (colWidth > 0) { for (int r = 0; r < gvMadeToStock.Rows.Count; r++) { for (int i = 0; i < gvMadeToStock.Rows[r].Cells.Count; i++) { gvMadeToStock.Rows[r].Cells[i].Width = colWidth; } } }
MyColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; MyColumn.FillWeight = 1/ColumnsCount;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)