First of all, read ThePhantomUpvoter's comments.
ThePhantomUpvoter wrote:
Quite frankly what you are wanting to do does not make much sense.
I agree with Him.
We do not understand what you're trying to achieve... Why to process through the collection of controls and binds data only on "Enter" key press event? Why to do that in
CellClick
event?
Probably, your problem is defined as:
i do not know how to alter previous entered data in a form and process the input in the same sequence, so... in your case, using
do.. while
or
for (each)... next
, changes nothing!
You need to rethink and redesign your application.