M
Michael Torville
Does anyone know if it's possible to prevent a user from entering a
particular "DataGridView" cell. I simply want to redirect them into the next
available cell but nothing I try works. Setting the "CurrentCell" property
for instance causes no end of problems. If I call it in a "CellEnter"
handler I get the error "Operation is not valid because it results in a
reentrant call to the SetCurrentCellAddressCore function" (which others on
the web have also reported). If I call it in a "CellMouseDown" handler it
works when right-clicking but not left-clicking. In other handlers it causes
a stack overflow. Does anyone know how to pull this off. Thanks.
particular "DataGridView" cell. I simply want to redirect them into the next
available cell but nothing I try works. Setting the "CurrentCell" property
for instance causes no end of problems. If I call it in a "CellEnter"
handler I get the error "Operation is not valid because it results in a
reentrant call to the SetCurrentCellAddressCore function" (which others on
the web have also reported). If I call it in a "CellMouseDown" handler it
works when right-clicking but not left-clicking. In other handlers it causes
a stack overflow. Does anyone know how to pull this off. Thanks.