Ver Mensaje Individual
  #10 (permalink)  
Antiguo 19/03/2008, 17:44
Avatar de Peterpay
Peterpay
Colaborador
 
Fecha de Ingreso: septiembre-2007
Ubicación: San Francisco, United States
Mensajes: 3.858
Antigüedad: 16 años, 8 meses
Puntos: 87
Re: Borde a una TableRow o TableCell

Lo consegui creando un cssclas en un archivo css

te pongo el codigo como quedo


.bono
{
border: solid 5px blue;
border-left-width:0px;
}


.....
TableRow fila = new TableRow();
fila.Height = 25;
fila.Attributes.CssStyle.Add("border", "solid 1px #000000");
TableCell celda = new TableCell();
celda.Height = 25;
celda.Width = 25;
celda.HorizontalAlign = HorizontalAlign.Center;
celda.BackColor = System.Drawing.Color.FromArgb(153, 153, 153);
celda.CssClass = "bono";
celda.Text = t.ToString();
fila.Cells.Add(celda);
.....

ademas elimine el table html dentro dle cual estaba definido el asp:table (recomendacion usa un div para ello)

xhtml esta en contra de las tablas de hecho si lo foreas con los de css te diran q cambies a una estructura q genera un div o span algo similar.
__________________
Curso WF4
http://cursos.gurudotnet.com/ DF
Aprende HTML5