Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Tablecell backcolor?

Reply
Thread Tools

Tablecell backcolor?

 
 
Fetty
Guest
Posts: n/a
 
      05-27-2005
// Add the new cell that will host the child grid

TableCell newCell = new TableCell();

newCell.ColumnSpan = cellsToSpanOver;

newCell.BackColor ="#fafad2"; ************ I know this is not right


--
David


 
Reply With Quote
 
 
 
 
Yunus Emre ALP÷ZEN [MCSD.NET]
Guest
Posts: n/a
 
      05-27-2005
Try to use css classes... It should be better...

--

Thanks,
Yunus Emre ALP÷ZEN
BSc, MCSD.NET

"Fetty" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> // Add the new cell that will host the child grid
>
> TableCell newCell = new TableCell();
>
> newCell.ColumnSpan = cellsToSpanOver;
>
> newCell.BackColor ="#fafad2"; ************ I know this is not right
>
>
> --
> David
>



 
Reply With Quote
 
 
 
 
Bruce Barker
Guest
Posts: n/a
 
      05-27-2005
if you look at the datatype of BackColor, you'll see its of datatype Color,
so you know you need to pass a Color. Now we look in the doc's for the Color
class. Here we see a bunch of ways to create a color, from name, from RGB,
etc. so after 60 seconds of reading the doc's we get:

newCell.BackColor = Color.FromArgb(0xfafad2);

-- bruce (sqlwork.com)


"Fetty" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> // Add the new cell that will host the child grid
>
> TableCell newCell = new TableCell();
>
> newCell.ColumnSpan = cellsToSpanOver;
>
> newCell.BackColor ="#fafad2"; ************ I know this is not right
>
>
> --
> David
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TableCell oTableCell = new TableCell(); noWrap? Brian K. Williams ASP .Net 2 04-30-2004 12:04 AM
capture a tablecell event Mr. x ASP .Net 0 09-01-2003 11:32 PM
Inserting text into TableCell at runtime Jurjen de Groot ASP .Net 3 08-18-2003 09:38 PM
convert tablecell to boundcolumn May ASP .Net 0 06-30-2003 07:43 PM
TableCell Serdar Kalaycż ASP .Net 4 06-30-2003 03:50 PM



Advertisments