If your grid column contains data string values that does not have any spaces, just setting the grid and column width wont work. When the data is loaded , the width of the grid as well the column exceeds the set value. To make sure it works.
- Set the desired width for each column and the grid.
- Add below line in the page load event of your page
gridview.Attributes.Add("style", "word-break:break-all;word-wrap:break-word");
thanks..this is very helpful to me..............
ReplyDelete