Objects of this class are used to update HTML Tables from a data source. The source can be 2-d arrays of HTML strings, or Dataset objects. The display can be configured in various way, and the target table can be updated initially, in response to user events, and/or periodically.

Namespace: Jaxcent.Web.Html
Assembly: Jaxcent (in Jaxcent.dll) Version: 2.3.1.0 (2.3.1.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class TableDataSource
Public Class TableDataSource
public ref class TableDataSource

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
TableDataSource(DataTable, Boolean)
Create a table source from a DataTable. Every time the table is updated using JaxcentTable.SetTableContent, the data will be collected from this DataTable and sent to the table. The table rows will grow/shrink to match the rows in DataTable. The DataTable can contain properly formed HTML to be inserted into table cells, or it can contain text strings (characters such as < or > etc will be escaped for text strings.)
TableDataSource(array<array<String>[]()[][]>[]()[][], Boolean)
Create a table source from a 2-D array of HTML or Text strings. (Text strings can contain < or > characters etc, and are properly escaped before being added to the page.) JaxcentTable.SetTableContent will use this 2-D array to set the contents of the table.
TableDataSource(DataTable, Boolean, Int32, TableUpdateStyles)
Create a table source from a DataTable. Every time the table is updated via JaxcentTable.SetTableContent, the data will be collected from this DataTable and sent to the table. The table rows will grow/shrink to match the rows in DataTable. The DataTable can contain properly formed HTML to be inserted into table cells, or it can contain text strings (any characters like < or > etc will be escaped in case of text strings.)
TableDataSource(array<array<String>[]()[][]>[]()[][], Boolean, Int32, TableUpdateStyles)
Create a table source from a 2-d Array. JaxcentTable.SetTableContent will use this 2-d array to update the table. The table rows will grow/shrink to match the rows in DataTable. The 2-d array can contain properly formed HTML to be inserted into table cells, or it can contain text strings (any characters like < or > etc will be escaped in case of text strings.)
DataArray
The source for the data can be a 2-d array: an array of rows, where each row is a string array of cells
DataTable
The source for the data can be a System.Data.DataTable object
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
HideDataColumn(Int32)
Hides the specified column of DataTable or 2-d array. Typical usage is for a column containing "id" or other unique specifier, which can then be used in InsertFormattedColumn's format-string, but which does not need to be displayed to the user.
InsertFormattedColumn(Int32, String)
Insert a formatted-HTML column before the specified index in the data-source. Typical usage is to insert a column of check-boxes, links like "select", "apply", "delete" etc, or buttons. The htmlFormatString can contain formatting specifications like {0}, {1} etc, as well as the marker {index}. {index} will be replaced by the row-index in the table itself, 0 through N-1 (number of header rows, if any, is added.) {0}, {1} etc are string.Format specifiers, and correspond to the data in the first column, second column, etc.
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
NumHeaderRows
This can be set to the number of any "header" rows the table might contain. (A typical value is 1.) This instructus Jaxcent to leave that many rows at the top of the table alone when updating the table. The initial default is 0.
TableUpdateStyles
During table update operations, the rows in the table may shrink or grow. If the rows grow (new rows are added), a style can be specified to apply to the new row. The style can be even/odd row styles, or an array of styles to apply to the cells.
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)

Inheritance Hierarchy

System..::..Object
  Jaxcent.Web.Html..::..TableDataSource

See Also