Click here to Skip to main content
15,668,646 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Does anyone know how to make the text of a column in a data grid multiline?

1 solution

Use the CellPainting event and on the cell style use WrapMode = DataGridViewTriState.True like advocated on this site:[^].

Hope that helps you achieve the desired effect.

Happy coding!

Share this answer
thatraja 23-May-11 14:35pm    
Spot on.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900