Hello is there an easy way to set the column width in a datagridView.
There is a DataGridViewAutoSizeColumnMode, but I dont know how to set the columns to
System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
Im using :
dataGridView.DataSource = convertDStoList((m_ResultDS.Tables[sNodeParentText]), e.Node.Text); to add the information to it.
Thanks
j_sen21Posted Dec 4, 2007, 1:24 PM
Got it!
this.dataGridColumnView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;