Cnu,
Check the documentation for the Expression property on the DataColumn
class. This is what the syntax for the RowFilter property on the DataView
class will use. Specifically, your filter will be something like:
dataView.RowFilter = "dateTimeColumn >= #mm/dd/yyyy# and dateTimeColumn <
#mm/dd/yyyy#";
Some things to note. First, the format of the date should be in the
current local. So if you are using dd/mm/yyyy, then use that.
The other thing to note is that I wasn't sure if you wanted DATE2 to be
inclusive or not. If you did, and you have time values, then you are going
to have to use less than for the second operator, and your DATE2 should be
DATE2 plus one day.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Duggi" <Du***************@gmail.comwrote in message
news:b1**********************************@c22g2000 prc.googlegroups.com...
Hi
I have a dataview dv, in which one of the column is a date time
column.
I would like to apply filter on this column. The filter should be some
thing like
"All the rows that has the date time between DATE1 and DATE2".
Please some one help me.,
Thanks
-Cnu