Linda:
Thank you so much for explaining why my code was really working as it was
supposed to; I understand now why the sequence of statements I originally
used was flawed. And thanks also for specifying a better sequence of
statements. Once I understood why you ordered them as you did and I changed
my code to match, this also fixed another elusive bug I was encountering but
had not yet had enough details to post a question about. (The bug was that on
certain data I was getting DataError events being generated from the
DataGridView complaining about contents incompatible with column data types.
I judge that this was just another manifestation of the same issue I started
this thread about.) So you saved me quite a bit of effort on this second bug
in my code!