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

x
?
Solved

ASP.net VB.net Table Control Double Border

Posted on 2014-03-13
4
Medium Priority
?
396 Views
Last Modified: 2014-03-13
Hi

Is it possible with the ASP.net table control to format the bottom of a cell
with a double line as you would in Excel using the following code?

Selection.Borders(xlEdgeBottom).LineStyle = xlDouble
0
Comment
Question by:Murray Brown
[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
  • 2
4 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 39926274
You can do it with CSS with something like;
td { border-bottom: double 2px black; }

Open in new window

0
 

Author Comment

by:Murray Brown
ID: 39926285
Thanks. I am a VB.net coder. Is there no way to do this with VB.net? If not, how do I manipulate the CSS you mentioned in a VB.net project?
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 2000 total points
ID: 39926322
The asp:Table control only lets you specify the border for the whole cell, not each individual side of the cell. To do it you need to use CSS.

Add the style into your pages head section and then set the CssClass property on each relevant cell:
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <style type="text/css">
        td.double-underline { border-bottom: double 2px black; }
    </style>
    <title></title>
</head>
<body>

    <form id="form1" runat="server">
    <div>
        <asp:Table>
            <asp:TableRow>
                <asp:TableCell CssClass="double-underline">Some content</asp:TableCell>
            </asp:TableRow>
        </asp:Table>
    </div>
    </form>

</body>
</html>

Open in new window

0
 

Author Closing Comment

by:Murray Brown
ID: 39926409
thanks
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
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: …
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

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