[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

set border color for cell in code behind

Posted on 2004-08-06
3
Medium Priority
?
416 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 2000 total points
ID: 11745100
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

649 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