Data Extensions.To Data Table<C>(IData Frame, String, IEnumerable<C>) Method
Constructs a data table from the specified columns a data frame.
Definition
Namespace: Extreme.Data
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0
C#
A data table containing the columns in columnKeys in dataFrame, using keyColumn as the name for the column that contains the row index of the data frame.
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0
public static DataTable ToDataTable<C>(
this IDataFrame dataFrame,
string keyColumn,
IEnumerable<C> columnKeys
)
Parameters
- dataFrame IDataFrame
- The data frame to convert.
- keyColumn String
- The name of the column that contains the row index values.
- columnKeys IEnumerable<C>
- A sequence of column names.
Type Parameters
- C
- The type of the column keys of the data frame.
Return Value
DataTableA data table containing the columns in columnKeys in dataFrame, using keyColumn as the name for the column that contains the row index of the data frame.