Problem with 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.

axd3320 reputationPosted Aug 20, 2004, 10:07 AM EDT
Carlos SanchezRank #6,113 · 276 reputationPosted Aug 20, 2004, 11:10 AM EDT