Click here to Skip to main content
15,894,017 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?
Posted

1 solution

Use the CellPainting event and on the cell style use WrapMode = DataGridViewTriState.True like advocated on this site: http://bytes.com/topic/c-sharp/answers/619756-datagridview-how-toggle-multiline-row[^].

Hope that helps you achieve the desired effect.

Happy coding!

-MRB
 
Share this answer
 
Comments
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