Not sure about what your code is doing, but IMO you can simply refresh the control with the data in DB after you delete the row. In other words, you can have put your code somewhere else to set the control value, and this basically happens after the row is deleted.