Skip to content

DataGridView - Wrap Text in Header #897

Closed

Description

@itg-assistant

Shawn Ramirez asked 2017-06-15 20:32:50 UTC

I am trying to wrap my text in my header.

I have "WrapMode" = true for the column but it is getting cut off (see image)

If you look at my image that I have attached the "On Hand" header is getting chopped off.

Thanks,

Shawn

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2017-06-15 21:12:36 UTC

    Hi Shawn,

    I am not sure I see the problem here. WrapMode does not automatically resize the column (header).
    So you need to make it taller to have the 2nd line appear.

    Hope that helps.

    Best regards
    Frank

  2. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Shawn Ramirez answered 2017-06-15 21:25:27 UTC

    How do I make the column header taller?

  3. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2017-06-15 21:40:18 UTC

    Hi Shawn, you can change the size of the header by changing the ColumnHeadersHeight of the DGV. Best regards, Frank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions