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