I don't know if this is a clue, but having loaded a user's timesheet I then switch to the next week's sheet, but put a breakpoint on the start of the sub LoadTimeSheet & execute the 1st 2 lines grdTimeSheet.DataSource = Nothing
grdTimeSheet.DataMember = String.Empty
then skip to the end Sub and expected to see nothing displayed on the form. However, the cell which had the focus on the 1st sheet is there all by itself.
It seems that in the normal flow, the new sheet gets displayed, but this cell is sitting on top of it.
It may be something to do with the readonly=true setting of objColumn2 thru 6. If I skip these settings, the spurious behaviour doesn't happen, and I see the sheets displayed correctly.
|