View Single Post
  #6 (permalink)  
Old 06-24-2009, 3:52 PM
gate7cy gate7cy is offline
VB.NET Forum Fanatic
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: May 2009
Posts: 115
Reputation: 15
gate7cy is on a distinguished programming path ahead
Default

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
Reply With Quote