1
Answer

DataGridView

Ask a question
j_sen21

j_sen21

16y
1.8k
1

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

 


Answers (1)