Any problems using a com component in VB.NET project

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
patrick_otterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
-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)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CodeCruiserCommented:
There are many great .NET alternatives to DataGridView including ComponentOne, DevExpress, Telerik etc. Can you not use them?
0
patrick_otterAuthor 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
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

patrick_otterAuthor 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
0
Éric MoreauSenior .Net ConsultantCommented:
>>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.
0
patrick_otterAuthor 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
0
Éric MoreauSenior .Net ConsultantCommented:
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.