how to wrap text in gridviewcolumn in c# windows application

Posted by Rajasekhar0544 under C# on 9/27/2012 | Points: 10 | Views : 1719 | Status : [Member] | Replies : 1
hi,

I have one gridview having some columns, i need to wrap the text by setting the property multiline in c# windows app. So kindly help me.

Thanks&Regards,
RajSekhar.




Responses

Posted by: Laurenrodriguez on: 9/27/2012 [Member] Starter | Points: 25

Up
0
Down
Try to use css to do this.

Here is one sample,



<table width="200" style="table-layout:fixed;">
<tr>
<td width="25%" style="word-break : break-all; ">abcdefghigklmnopqrstuvwxyz 1234567890
</td>
<td style="word-wrap : break-word ;">abcdefghigklmnopqrstuvwxyz 1234567890
</td>
</tr>
</table>

Rajasekhar0544, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response