I'm having a problem filtering date ranges. Here's what I have:
When I choose a date range(ex. 03/01/2006 - today), it just gives me all records, even the ones before the beginning date.
VB.NET:
Dim dv As New DataView(ds.Tables("NameOfTable"))
Dim x As Integer = dv.Count
dv.Sort = "Date"
dv.RowFilter = "Date >= #" & DatePicker1.Value & "#"
dv.RowFilter = "Date <= #" & DatePicker2.Value & "#"
NameOfDataGridOnForm.DataSource = dv
When I choose a date range(ex. 03/01/2006 - today), it just gives me all records, even the ones before the beginning date.