?
Solved

ASP.NET thead create table with thead using code behind

Posted on 2013-02-01
2
Medium Priority
?
2,156 Views
Last Modified: 2013-02-04
using my existing code below how can i incorp thead

<table><thead><tr><td></td></tr></table>

 
Dim c As New TableCell
            Dim r As New TableRow
            Dim D As New TableRow

 c = New TableCell
                c.Text = "te"
                r.Style.Add("text-align", "center")
                c.Style.Add("width", "70px")
                c.Style.Add("border-bottom", "black 1px solid")
                r.Cells.Add(c)

                c = New TableCell
                c.Text = "Item"
                r.Style.Add("text-align", "center")
                c.Style.Add("width", "40px")
                c.Style.Add("border-bottom", "black 1px solid")
                'c.ColumnSpan = 3
                r.Cells.Add(c)
 Trade.Rows.Add(r)

Open in new window

0
Comment
Question by:Seven price
[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 Comments
 
LVL 6

Accepted Solution

by:
esolve earned 2000 total points
ID: 38846296
Look at this:

http://www.thebestdata.com/zoom.htm?menutype=1&auto=2362
http://forums.asp.net/t/1182775.aspx/1
TableRow row = new TableHeaderRow();
        TableRow row2 = new TableRow();
        TableRow row3 = new TableFooterRow();
        Table table = new Table();

        var cell1 = new TableCell();
        row.TableSection = TableRowSection.TableHeader;
        cell1.Text = "Header";
        row.Cells.Add(cell1);

        var cell2 = new TableCell();
        cell2.Text = "Contents";
        row2.Cells.Add(cell2);

        var cell3 = new TableCell();
        cell3.Text = "Footer";
        row3.Cells.Add(cell3);
        row3.TableSection = TableRowSection.TableFooter;


        table.Rows.Add(row);
        table.Rows.Add(row2);
        table.Rows.Add(row3);
        this.Controls.Add(table);

Open in new window

0
 
LVL 9

Author Closing Comment

by:Seven price
ID: 38851577
tks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

762 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