Thanks all for the replies. This worked just fine.I am trying to refresh the datagrid using parameter queries. I am filtering the grid using the date column. But I always get an empty grid. Here is the code.
Code:
Private Sub DateTimePicker1_ValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged
Dim dd As DateTime = CDate(CStr(Me.DateTimePicker1.Value))
Me.TextBox1.Text = dd.ToString("mm/dd/yyyy")
dd = CDate(Me.TextBox1.Text)
Me.ServicesTableAdapter.testdate(Me.Database2DataSet.Services, dd)
End Sub
thanks for the replies