Carlos Sanchez

Carlos Sanchez

  • NA
  • 264
  • 0

Problem with DataTable.Select() method

Aug 20 2004 1:51 PM
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

Answers (2)