ASP: simple use of table

Source: Internet
Author: User

A while ago, I had to create a binary table for data statistics. I didn't expect a good idea. Considering that the data row is not too big, I just wrote my own songs. The ASP: Table control is used.

To be honest, this guy is really amazing.

The basic usage is as follows:

// Generate a row from the table.

Tablerow myfirstrow = table1.rows [0];

// Regenerate a cell

Tablecell myfirstcell = new tablecell ();

// Specify the length of the crossed column, which is similar to HTML;

Myfirstcell. columnspan = mysencondcolumnal. Length + 1;

// Specify the cell Border width.

Myfirstcell. borderwidth = 1;

// Specify the location of the cell data.

Myfirstcell. horizontalalign = horizontalalign. Center;

// Add data to a cell.

Myfirstcell. Controls. Add (New literalcontrol (biaoti [I]. tostring ()));

// Add cells to row, OK, and game over.

Myfirstrow. cells. Add (myfirstcell );

Of course, there are more detailed operations. NET Friendly tips. Don't let me talk about it.

In combination with your ideas, you will certainly be able to make good results.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.