I'm trying to use the select function filtered by a list as oposed to a value
if dt_old
is a datatable, CFKEY
is a column of dt_old
, this statement uses Select for a specific Value and it work fine.
DataRow[] dt_oldDuplicateRow = dt_old.Select("CFKEY = '1'");
I can't find a way to use select to filter on an array or list based on an other datatable, I would like to do something like this.
DataColumn dc = dt_new.Columns["CFKEY"];
DataRow[] dt_oldDuplicateRow = dt_old.Select("CFKEY in " + dc );
where dt_new
is the same format as st_old
. any idea?