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.)

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 TableDataSource(
	DataTable data,
	bool isHtml,
	int numHeaderRows,
	TableUpdateStyles tableUpdateStyles
)
Public Sub New ( _
	data As DataTable, _
	isHtml As Boolean, _
	numHeaderRows As Integer, _
	tableUpdateStyles As TableUpdateStyles _
)
public:
TableDataSource(
	DataTable^ data, 
	bool isHtml, 
	int numHeaderRows, 
	TableUpdateStyles^ tableUpdateStyles
)

Parameters

data
DataTable
The DataTable object that is the source of the data
isHtml
Boolean
Whether the DataTable contains HTML. False if it contains Text.
numHeaderRows
Int32
Set NumHeaderRows, number of "header" rows in table
tableUpdateStyles
TableUpdateStyles
Set TableUpdateStyles, style for any inserted rows

See Also