Hi,

i have one doubt regarding datagridview in windows.

i can take one column named "Description". I enter rows more than one for that column.

but i want set the size of the column,here my requirement is 500 size for that column.

pls help me, how to set the column size for Description column.
Like: cell1 lengh+cell2 length etc=column lenth(500)

Recommended Answers

All 2 Replies

Dear kspriya01,

Use Columns collection

dataGridView1.Columns[0].Width = 500;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.