You probably have an exception being raised, which is swallowed by the .NET framework or by the grid.
For trapping exceptions, you need to set the debugger to break on all exception. Go to Debug Menu -> Exceptions -> Common Language Runtime Exceptions, and select “Thrown” CheckBox.
Also make sure the “Enable Just My Code” CheckBox is unselected (Tools Menu -> Options -> Debugging -> General) if you’re using VS 2005 or up.
This will make sure that no exceptions are swallowed by the grid or the framework, and that the debugger will break in any part of the code, not just yours. It should give you the necessary information to make your code work.
Imported from legacy forums. Posted by André (had 526 views)