Hi Alex,
The BorderStyle on ASP:TableRow will be grant to the <tr> tag in client
browser. Hwoever, these styles didn't work with a <tr> tag.
Your idea for setting style of each cell is also great. Following are code
to achieve this:
Dim count As Integer
Table1.Rows(1).Cells(0).Attributes.Add("style", "BORDER-TOP: ridge;
BORDER-BOTTOM: ridge;BORDER-LEFT: ridge")
Table1.Rows(1).Cells(Table1.Rows(1).Cells.Count -
1).Attributes.Add("style", "BORDER-TOP: ridge; BORDER-BOTTOM:
ridge;BORDER-RIGHT: ridge")
For count = 1 To Table1.Rows(1).Cells.Count - 2
Table1.Rows(1).Cells(count).Attributes.Add("style" ,
"BORDER-TOP: ridge; BORDER-BOTTOM: ridge")
Next
Luke
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)