Try this:
Public Function filterDataSet(ByVal ds As DataSet) As DataView
Dim dv As DataView = New DataView()
dv = ds.Tables(0).DefaultView
dv.RowFilter = "startDate > #1/30/2008# and endDate < #1/30/2010#"
Return dv
End Function
Usage:
dgTranslog.DataSource = Nothing
dgTranslog.DataSource = filterDataSet(dsGet)
Could replace:
dv = ds.Tables(0).DefaultView
With:
dv = ds.Tables(tblTranslog).DefaultView
The following may need to be changed:
"startDate > #1/30/2008# and endDate < #1/30/2010#"
and the format of the date may depend on your computer locale settings.
The above is untested.
Code adapted from: