order of event
hi, what would be the events order in this situation?
i click on a button>
ok the button.click is triggered
i want to be able to obtain what was the grid that had focus last, and execute its save method, it should be the grid , not the form since a form may contain multiple grids.
i also have a dgv_lostfocus where i set mysave to nothing. i should be able to allow mysave.click to occur and then set mysave to nothing.
clicking on mysave already loses the focus on the dgv, setting it to null.. how do i act here?
[558 byte] By [
hrubesh] at [2007-12-24]
wait what is happening here.
a points to b.
b point to c.
dim c as new button
dim b as button = c
dim a as button = b
a gets the adress of c?
if i go b = nothing., a still referencing c?
irony
'Private Sub AmountTypesDGV_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles AmountTypesDGV.LostFocus' Me.mysave = Nothing'End Sub
Private Sub DGV_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LostFocusMe.mysave = Nothing
End Sub
both are fired . only with the one thats on the form really set mysave to nothing. thats my whole point of doing all this,. i want my dgv to do 99% of i can do through it,,.. why do i needing to rewrite code on each form . and they seem to both occur.! the mysave on the form references the mysave on the dgv. !