Hi Guys,
I have two Datagridviews in a tab and the datasource of the second grid is based on the row selection in first grid. The problem is I cannot get the grid to refresh after some values have been inserted or updated in the prior tabs. It works fine if I click on the row but it is not working if I select the row programmatically (i.e. first row). I have tried the following but it failed to refresh.
daProgram.ClearBeforeFill = true
daProgram.fill(dsProgram)
bsProgram.ResetBindings(true) -- binding source also tried false
'also tried
'dgvProgram.DataSource=nothing
'and
'dgvProgram.DataBindings.clear()
'Nothing works :-(
dgvProgram.DataSource=bsProgram -- rebinding the control
I would really appreciate if anyone could help me out in this.
Thanks,
Raja