Posted 21 September 2021, 7:42 am EST
Hello Malishin.
Based on your sample, it appears that your trying to use the ActiveX vsFlexGrid in a VB .NET application. While you can use ActiveX controls in .NET, it is accomplished via an Interop layer that Visual Studio creates. Basically a little “bubble” of ActiveX that the control exists within and all interactions with the control need to be translated between the different platforms. For this reason, we don’t support our ActiveX controls in a .NET project (we don’t control the Interop layer, it’s provided by Microsoft). Rather, we suggest you use our .NET controls if your developing a .NET project.
For Winforms, we have the C1FlexGrid, which is a .NET version of the FlexGrid control that will be much better suited for your application. Note, it is not just the vsFlexGrid control converted to .NET but a completely rewrite that takes advantage of all the .NET features and functionalities.
Below is a link to the documentation with information about how to setup Validation which might be good fit for what your trying to do.
I hope that helps. If you have any questions, please let us know.
Thank you.
Andy