Click here to Skip to main content
15,886,100 members

Comments by bgcwaterman (Top 12 by date)

bgcwaterman 26-Mar-21 12:29pm View    
I added the following and it didn't work.

'clear the dataset before filling
Me.MubsDataSet.Clear() <--------added this line
'refill the table adapter from the dataset table
Me.TblReadingsTableAdapter.Fill(Me.MubsDataSet.tblReadings)
'clear out the datasource for the Grid view
Me.DataGridView1.DataSource = Nothing
'reset the datasource from the binding source
Me.DataGridView1.DataSource = Me.TblReadingsBindingSource
'should redraw with the new data
Me.DataGridView1.Update()
Me.DataGridView1.RefreshEdit()
bgcwaterman 26-Mar-21 12:24pm View    
Deleted
I added the following and it didn't work.

Try
'clear the dataset before filling
Me.MubsDataSet.Clear()
'refill the table adapter from the dataset table
Me.TblReadingsTableAdapter.Fill(Me.MubsDataSet.tblReadings)
'clear out the datasource for the Grid view
Me.DataGridView1.DataSource = Nothing
'reset the datasource from the binding source
Me.DataGridView1.DataSource = Me.TblReadingsBindingSource
'should redraw with the new data
Me.DataGridView1.Update()
Me.DataGridView1.RefreshEdit()
bgcwaterman 23-Mar-20 20:23pm View    
I am using the Leave event. I see I need to change it to a Validating event..
bgcwaterman 20-Feb-20 15:29pm View    
That did it.
Thanks...
bgcwaterman 6-Feb-20 10:42am View    
Got it to work. I just need to setup what I want to do with the handler... The strange thing is I have to go to each control to set the handler because if I select multiple controls the "TextChanged" event doesn't shop up.... thanks...