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
Loading
VulpesPosted Jun 3, 2013, 9:04 AM
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'.
vivaPosted Jun 3, 2013, 8:45 AM
Can you please answer it specifically for datagrid view? and wherethese settings are??
Kiresh GangariyaPosted Jun 3, 2013, 8:37 AM