private string FilterValues(DataRow dr, params string[] parm) {
ArrayList al = new ArrayList();
foreach (string s in parm) {
al.Add(dr[s].ToString());
}
string[] sArray = (string[]) al.ToArray(typeof(string));
return string.Join(“,”, sArray);
}