Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Figuring out what each cell means in GridView
Message
 
 
To
01/08/2008 15:59:09
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01335562
Message ID:
01335956
Views:
10
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform