Help with Datagrid Events!

L

Lars Netzel

My question is about how to get more info on what's happening while
debugging in this scenario...

My cursor is in the last cell of a datagrid row... I press TAB and the
CerrentCellChanged is triggered.
I have a break point on that grid's CurrentCellChanged and it breaks... I
use the Imediate window to check what ColumnIndex the CurrentCell has and
it's 0 which is good... that means it has jump down to the next row and
focus is in the first cell.
When I then press F5 to jump to the next breakpoint.. it happens again is
breaks in the same place... and the ColumnIndex is now 1... and when I go
out from breakmode... the cursor is in the second cell of the next row..
which means it Skipped the first cell... and that's not acceptable!

The Call stack doesn't give me anything at all here.. and I have no idead
why this is happening,,, can anyone give me a tip on what to do here?

/Lars
 
G

Gerry O'Brien [MVP]

What is your next breakpoint set on?

Have you tried using F11 to step through each line of code?

You might also try adding conditional breakpoints and have the IDE stop when
the Column index changes or when it is set to a specifc value.
 
G

Gerry O'Brien [MVP]

Excellent, glad you got it to work.

And now, we add yet another link to our favorites under bugs. ;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top