Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Figuring out what each cell means in GridView
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Figuring out what each cell means in GridView
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01335562
Message ID:
01335562
Views:
56
Hi everybody,

I have this code
for (int i = 4; i < e.Row.Cells.Count; i++)
            {
                e.Row.Cells[i].Attributes.Add("style", "word-wrap:break-word;width:70px");
            }    
However, I only want to execute this code for particular columns (Phone, City, etc.). Can I figure out which cell I'm in?

Also is there something like INLIST or myValue IN (...) in C# if I want to check a value against number of items?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform