Hi
I have a datatable of which I want to filter, and bind one version to a repeater and the other version to another repeater.
I wrote this func:
* private DataTable SelectIntoDataTable(string selectFilter, DataTable sourceDataTable)
* {
*
*
* DataTable newDataTable = sourceDataTable.Clone;
*
* DataRow[] dataRows = sourceDataTable.Select(selectFilter);
*
* // Declare a variable of type DataRow named typeDataRow.
*
* DataRow typeDataRow = default(DataRow);
*
* // Use the typeDataRow to loop through the rows of the sourceDataTable.
*
* foreach (var typeDataRow in dataRows) {
*
* newDataTable.ImportRow(typeDataRow);
* }
*
*
* return newDataTable;
*
* }
But this don't work, any ideas how to import the back into a datatable.
Thanks
inadvance.
I have a datatable of which I want to filter, and bind one version to a repeater and the other version to another repeater.
I wrote this func:
* private DataTable SelectIntoDataTable(string selectFilter, DataTable sourceDataTable)
* {
*
*
* DataTable newDataTable = sourceDataTable.Clone;
*
* DataRow[] dataRows = sourceDataTable.Select(selectFilter);
*
* // Declare a variable of type DataRow named typeDataRow.
*
* DataRow typeDataRow = default(DataRow);
*
* // Use the typeDataRow to loop through the rows of the sourceDataTable.
*
* foreach (var typeDataRow in dataRows) {
*
* newDataTable.ImportRow(typeDataRow);
* }
*
*
* return newDataTable;
*
* }
But this don't work, any ideas how to import the back into a datatable.
Thanks
inadvance.