I have a table with two columns (column1 and column2). I want to resize each column with his own size. Then I try to write this line of code but its resize all the columns. Please solve it fo me. Thanx!
private void dgvpeople_ColumnAdded(object sender, DataGridViewColumnEventArgs e)
{
e.Column.Width = 30;
}

Abhishek KumarRank #510 · 4.8K reputationPosted Sep 15, 2014, 5:36 AM EDT
Please try this.
DataGridViewColumn column = grdTest.Columns[0];
column.Width = 30;
Hope this will help.
Abhishek
Dipankar BiswasRank #992 · 2K reputationPosted Sep 15, 2014, 4:23 AM EDT
IsraelRank #1,223 · 1.5K reputationPosted Sep 15, 2014, 5:21 AM EDT
IsraelRank #1,223 · 1.5K reputationPosted Sep 15, 2014, 8:08 AM EDT
I do this:
Mfwamba Tshimanga155 reputationPosted Sep 16, 2014, 11:56 PM EDT