Back to Table
FromDataTableMethod
Definition
- Namespace
- DOM.Elements.TableElements
- Assembly
- DOM.dll
Creates a instance from a . Table, DataTable
Table FromDataTable(DataTable dataTable, bool includeHeaders, TableStyle style)Parameters
- dataTable
- The source containing rows and columns to populate the table. DataTable
- includeHeaders
- If, a header row will be created using the column names from the collection. Columns
- style
- An optional to apply to the created table. TableStyle
Exceptions
- System.ArgumentNullException: Thrown when is . dataTable
Remarks
All cell values are converted to strings using . Null values are converted to empty strings. ToString