We help IT Professionals succeed at work.

Any problems using a com component in VB.NET project

patrick_otter
on
I dislike the Datagridview. I find it inferior to ComponentOne's VSFlexGrid which I used when working in VB6. I have just discovered how to add a COM component to my VB.NET toolbox and propose to substitute all instances of the Datagridview with VSFlexGrids.

Are there any downsides to using COM components in a VB.NET project.

TIA Patrick
Comment
Watch Question

Senior .Net Consultant
Top Expert 2016
Commented:
-you will never be able to use properties like Anchor because it simply doesn't exist
-you will have to deploy all the COM components requirements (like the VB6 runtime)
-you won't be able to bind a dataset to the grid (you will need to convert to an old recordset format)
Most Valuable Expert 2012
Top Expert 2014

Commented:
There are many great .NET alternatives to DataGridView including ComponentOne, DevExpress, Telerik etc. Can you not use them?

Author

Commented:
Thanks CodeCruiser. You said "There are many great .NET alternatives to DataGridView including ComponentOne, DevExpress, Telerik etc. Can you not use them?"

Perhaps I could use them if I could afford them. If I were to use a dedicated .NET grid I would probably use FlexCell which looks capable and is only $159.

Patrick

Author

Commented:
Thank you, emoreau, for your comments. You said:

"-you will never be able to use properties like Anchor because it simply doesn't exist"
I'm happy to code any resize problems.

"-you will have to deploy all the COM components requirements (like the VB6 runtime)"
OK - so I will probably have to use a proper install program. But do you really think I would have to have to distribute the VB6 runtime ?

"-you won't be able to bind a dataset to the grid (you will need to convert to an old recordset format)"
I would prefer to work unbound.

Patrick
Éric MoreauSenior .Net Consultant
Top Expert 2016

Commented:
>>But do you really think I would have to have to distribute the VB6 runtime ?

Having done many installations over the years, I have learned that you can never take your requirements for granted.

Author

Commented:
Hi emoreau

Reluctantly I have decided to accept your solution because you did point out possible deployment problems.

I have abandoned the idea of using the VSFlexGrid COM component and am now trying out the FlexCell .NET grid which seems very neat, flexible and competent.

Patrick
Éric MoreauSenior .Net Consultant
Top Expert 2016

Commented: