Home All Groups Group Topic Archive Search About

Missing cell borders in Table control

Author
17 Nov 2006 10:30 PM
elect_son
Hi,

I am using the Table control in ASP.NET to display values from a database. 
Although I have specified borders for each cell, cells with no data are
displaying without borders.

At the cell level I have the BorderStyle set to "Solid" and have set a
border color.  I also have the same set at the row level.  Still empty cells
get no border.

How can I get empty cells to have a border?  Do I need to initialize the
empty cells to something or is there a way to just always have a border?

Thanks!

Bob

Author
19 Nov 2006 1:41 AM
JasonBourne
Just put atleast a space character ( ) inside a cell to make the
borders appear.

Eric -
http://www.ComputerHelpCentral.com

elect_son wrote:
Show quoteHide quote
> Hi,
>
> I am using the Table control in ASP.NET to display values from a database.
> Although I have specified borders for each cell, cells with no data are
> displaying without borders.
>
> At the cell level I have the BorderStyle set to "Solid" and have set a
> border color.  I also have the same set at the row level.  Still empty cells
> get no border.
>
> How can I get empty cells to have a border?  Do I need to initialize the
> empty cells to something or is there a way to just always have a border?
>
> Thanks!
>
> Bob