datagridview column size

G

Guest

Hi all

I have a datagridview which is bound to a dataset. The datagridview is
filled at run-time.

How can set the column-width for each column.

I have tried :
DataGridViewColumn column = dataGridView1.Columns[0];
column.Width = 60;

This works fine if a create a datagrid and the columns (that menas not
binding i quess).

how can i get it to work for a binded datagridview.

Thanks.
Lars E. Nes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top