Previous | Index | Next 

[PRB] DataGrid and MSHFlexGrid controls don’t work as expected and/or throw exceptions

The VB6DataGrid and VB6MSHFlexGrid controls are just wrappers over the original DataGrid and MSHFlexGrid ActiveX controls, respectively. While many of their properties, methods, and events work as expected, at times they can exhibit unexpected behavior. For example, columns are often wider than in the original application. Also, write access violation exceptions can occur when the user selects two or more rows using the Ctrl+Click combination.

We have found that using grid controls via COM Interop isn’t a wise decision, and we strongly discourage from using the current version of these controls in production code.

There are no trivial workaround to this problem, because it’s inherent to the COM Interop technology and doesn’t depend on VB Migration Partner. In the feature we might offer a solution in the form of a fully managed version of the VB6DataGrid control that doesn’t depend on COM Interop.

 

Previous | Index | Next