How to change the height of header in DataGridView ?

How to change the height of header in DataGridView ?

All developers might have gone through changing the data grid view header size to increase.  You add data grid view control to windows form and press F7 and go to designer view or else go to your code behind  file and add the below code snippet.
  Tip
 // Set grid column header styles.

 this.dGridCompanies.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing;
        this.dGridCompanies.ColumnHeadersHeight = 60;
            this.dGridCompanies.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;

 Below the are the results when you make change on the grid header column size to 60.
OUTPUT 

Published by arjunpremier

Software Engineer, Blogger,

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Design a site like this with WordPress.com
Get started