Solved

set border color for cell in code behind

Posted on 2004-08-06
3
394 Views
Last Modified: 2008-03-10
Hi,
I am creating a table dynamically in code and having a hard time setting the border color of the cells.
I need the cells to look like buttons or at the very least have some dimenson.
What Im looking for is to set the Top and Left cell border to gray and bottom and right to black.
Right now I'm setting some of the properties like this:

cell.BackColor = Color.SteelBlue
cell.attributes("onclick") = "Javascript:style.cursor='hand'"
ect..
I must be skirting around it.
Any help would be appreciated.
Thanks
0
Comment
Question by:MiddletownRI
  • 2
3 Comments
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11741145
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolswebcontrolclassbordercolortopic.asp you would set it on the table ... you could also use CSS to set it on the individual cell through the CssClass Property on the cell.
0
 

Author Comment

by:MiddletownRI
ID: 11745077
I don't see how I can set the individual cell border (top, bottom) .
I'm creating the table and cells in code.
Do you have an example?
0
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 500 total points
ID: 11745100
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now