Click here to Skip to main content
15,906,455 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to make DataGridView Column wrappable in win appliction 2008 in c#?
Posted

1 solution

Try:
dgv.Columns[0].DefaultCellStyle.WrapMode = DataGridViewTriState.True;




"Thanks and how to make incress Column height?"
Try:
dgv.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells;
 
Share this answer
 
v2
Comments
divesh12 11-Jul-11 9:54am    
Thanks and how to make incress Column height?
OriginalGriff 11-Jul-11 10:02am    
Answer updated
divesh12 11-Jul-11 10:57am    
Thanks sir, But I want the expand as the user is typing.
BobJanova 11-Jul-11 9:57am    
Nice! Didn't know about that!

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