CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2005
    Location
    algiers, Algeria
    Posts
    132

    [RESOLVED] DataGridView header height

    How i can change the height of header in DataGridView, i tried this property but it didnt work :
    Code:
    this.dataGridView1.EnableHeadersVisualStyles=false;
    this.dataGridView1.ColumnHeadersHeight=60;

  2. #2
    Join Date
    May 2007
    Location
    Denmark
    Posts
    623

    Re: DataGridView header height

    You may need to set the ColumnHeaderHeightSizeMode to DisableResizing for it to work...
    It's not a bug, it's a feature!

  3. #3
    Join Date
    Dec 2005
    Location
    algiers, Algeria
    Posts
    132

    Re: DataGridView header height

    Thanks, it works fine

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured