Solved

set border color for cell in code behind

Posted on 2004-08-06
3
407 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

705 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