vb.net - DataGridView.CurrentCellDirtyStateChanged throws InvalidProgramException when calling a method -


I have DataGridView that is bound to a DataTable I was using AutoGenerateColumns = true but I changed it to false Given so that I can manage the columns automatically and then I started receiving an InvalidProgramException in the Event Handler for DataGridView.CurrentCellDirtyStateChanged. When this event handler is another method called callfilter (), it throws an exception. This method does not enter when I move through the code, the exception occurs when the method is called. CheckFilter () is a private subsystem with no parameters. The exception message "Common Language Runtime Detected an Unrecognized Program" is that I am using vb.net on Visual Studio 2008 on .NET 2.0 and Windows 7.

It has been found that the exception method did not come by calling, but for each loop of the method I have not specified the type of loop variable for loops of each loop ending through a collection of Datarovs, so I created the loop variable a Data Grid Roller and then the exception went away. I think it should be a bug in the structure or the compiler.

Comments