I set the autosize mode to column header for my datagridview headers, but it doesn't work the way I wanted to. I have a header text "User ID", and instead of making a header that contains only one line of text, it makes two lines.

User ID < should be but,

User < column header mode
ID

Try to remove that auto sizing. Leave the sizining on default.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.