I am scratching my head over something rather stupid yet apparently difficult.
DataView dvFormula = dsFormula.Tables[0].DefaultView; dvFormula.RowFilter = \"
This is the solution. Try this:
filter = " (Date >= #" + Convert.ToDateTime(txtFromDate.Text).ToString("MM/dd/yyyy") + "# And Date <= #" + Convert.ToDateTime(txtToDate.Text).ToString("MM/dd/yyyy") + "# ) ";