Hi
I have created table using datagrid view. In that table, I could set column data at central of that row.
But I am not able to set coulmn header text at central position also how to set all column at same width?
I am using only data grid view control.
Please help.
Thanks
viva
How to align column header using datagrid view control
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Kiresh Gangariya52 reputationPosted Jun 3, 2013, 4:37 AM EDT
viva27 reputationPosted Jun 3, 2013, 4:45 AM EDT
Can you please answer it specifically for datagrid view? and wherethese settings are??
VulpesRank #55 · 29.2K reputationPosted Jun 3, 2013, 5:04 AM EDT
dataGridView1.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
To set all the columns to the same width, I think you'll have to set them individually as I can't find a property to do this 'en bloc'.