Well I don't want to manually move the data. I want them to be bound. I do not want to in code fill the data to my date time pickers.
I just don't know how to get both the date and the time to be bound to the same table field and still save correctly.
Here is my save procedure:
And it errors out when I end the current edit:Code:Private Sub Button21_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button21.Click Dim BindingManager As BindingManagerBase = Me.BindingContext(Me.DsTradeShow1, "Tradeshow_Details") BindingManager.EndCurrentEdit() If Not Me.GetConnection Then Exit Sub Try Me.sdaShowDetails.Update(Me.DsTradeShow1, "Tradeshow_Details") Catch ex As Exception MsgBox(ex.Message) Finally Me.SqlConnection1.Close() End Try Me.Panel2.SendToBack() End Sub
I just want to know how to Bind 2 date time pickers to the same field. One for the date, the other for the time and get them to save correctly.Code:Dim BindingManager As BindingManagerBase = Me.BindingContext(Me.DsTradeShow1, "Tradeshow_Details") BindingManager.EndCurrentEdit()




Reply With Quote