DataTable.Select() Method
Hi all!
I have a problem, the code below throws an exception:
Code:
DataRow[] Rows = dsDataSet.Tables["MyTable"].Select("NumericColumn = " + NumVar + " AND DateColumn = " + DateVar.ToString("dd/MM/yyy"));
Exception:
Cannot perform '=' operation on System.DateTime and System.Double
String value of the Select statement:
"NumericColumn = 1 AND DateColumn = 08/20/2004"
somebody knows why?
Thanx in advanced
Regards
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Giovanni Bejarasco34 reputationPosted Aug 22, 2004, 8:51 AM EDT
Carlos SanchezRank #6,113 · 276 reputationPosted Aug 23, 2004, 5:13 AM EDT