B
byrd48
Hi,
am attempting to create a DataTable by copying a table from a data
set, then filter the rows as follows:
DataTable dt = DataSet1.Tables[0].Copy;
DataRow[] dr = dt.Select("myexpression");
dt.Rows.Clear();
dt.Rows.Add(dr);
I have validated that teh number of columns in the datatable matches
the number of items in the DataRow.ItemArray, but it still throws an
exception on the last line that the index of dr is greater than the
number of columns in the datatable.
Thanks in advance,
Jon
am attempting to create a DataTable by copying a table from a data
set, then filter the rows as follows:
DataTable dt = DataSet1.Tables[0].Copy;
DataRow[] dr = dt.Select("myexpression");
dt.Rows.Clear();
dt.Rows.Add(dr);
I have validated that teh number of columns in the datatable matches
the number of items in the DataRow.ItemArray, but it still throws an
exception on the last line that the index of dr is greater than the
number of columns in the datatable.
Thanks in advance,
Jon