>
>I put
>>>>for (int i = 4; i < e.Row.Cells.Count; i++)
>>{
>>
>>e.Row.Cells[i].Attributes.Add("style", "word-wrap:break-word;width:70px");
>>}
>>
>>
>>and in ASCX
>>>>ControlStyle-Width ="70px"
>>
>>http://forums.asp.net/t/1298295.aspx
>>
>>and it seems to fix the problem.>
>Hmmm, ok ... that's not what I thought your original question was about (the Title of the post is completely different). But, after reading your post on the link to the forums.asp.net, it was really more about getting the columns to remain at a certain size.
>
>~~Bonnie
You're right, I originally was thinking I need to apply that style only for particular columns that may be problematic, but it seems like it doesn't hurt for all columns, so at the end I didn't need to get this info.
But it may be important for other situations.
BTW, do you know of a simple way to check for multiple conditions without using LINQ? Sort of IN VFP operator?
Currently every time I write it as multiple ORs and it doesn't look good in my eyes.
If it's not broken, fix it until it is.
My Blog