How to use Table in asp.net

Table Web Server Control

ASP.NET Table web server control display a table on a web page. It is a .NET web server control so
we can program it in server code such as add, remove table row, cell programmatically. TableRow and TableCell
web server controls allow us to display content for the Table. Table server control display tabular data and we can format Table
server control using it's built in methods and properties. The big difference between HTML table and asp.net Table server control is that we can
manipulate Table server control using an object model. Generally we should use Table server control when we intend to add remove rows and cells (columns)
programmatically at run time.

Table server control acts as a parent (container) for TableRows controls. Table control's Rows property is a collection of TableRow objects.
each TableRow control has a collection named Cells. Cells collection contains TableCell objects.

Table have many properties to control it's appearance such as BackColor, ForeColor, BorderColor, BorderWidth, BorderStyle, Height,
BackImageUrl, Caption, CellPadding, CellSpacing, CssClass, GridLines, Font, HorizontalAlign, Style, SkinID etc. TableRow and TableCell
control support many of these properties as well. Even we can change any individual cell's or row's appearance and look.

Table server control can display data from a database. But table control does not provide any property that we can use to directly display
database data. The following C# example code describe you more about ASP.NET Table web server control.