Click here to Skip to main content
15,922,166 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have been looking for an answer to this for awhile and haven't found what I am looking for. I have a GridView with 5 columns. One of those columns is a very long string with instead of " ". I need to be able to fix the width of the column and have word wrap take care of the string till the end of it. I have tried all the properties on the gridview to get what I need but the span always stretches out horizontally and never wraps.
If their is any way to autosize the Columns width of Gridview .
If any please suggest .
Posted
Updated 13-Feb-14 22:12pm
v2

Check the accepted answers at GridView AutoSize Columns[^].

You need to use ItemStyle attribute of GridView Column.
 
Share this answer
 

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