[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

MSFLEXGRID in Visual Studio 2008

Posted on 2009-02-16
9
Medium Priority
?
3,278 Views
Last Modified: 2013-11-26
I imported one application from VB 6 to VS 2008. And now, when i open a form and close, if I don't get out from application and return to that form the MSFLEXGRID (AxMsFlexgridlib.AxMsFlexgrid) the grid duplicate the rows.
0
Comment
Question by:Jose Bredariol
  • 5
  • 4
9 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 23650968
you should get rid of any COM objects dependency (like the FlexGrid) and use only .Net objects.

When you use COM objects, it comes with a lot of overhead.
0
 

Author Comment

by:Jose Bredariol
ID: 23651496
Can you be more expecific ? I Import this application from a VB 6, and there it was working fine. I have to re-do it ?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 23652069
Using the wizard to convert an old VB6 application to .Net is not a good idea.

Other then regular simple controls like buttons, textbox, labels, .... that are converted to there .Net equivalent, other controls like the FlexGrid are kept as is using the interop layer (in your case it is the AxMsFlexgridlob). This object is a COM object which is not in managed code and is not native to .Net. This layer transform every .Net call to COM calls. This will reduce the performance for sure.

If you don't want to use .Net controls and paradigms, better stay in VB6!
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:Jose Bredariol
ID: 23655339
OK, I understand. So what is the equivalent for MSFlexgrid in .NET?
Thanks a lot
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 23655579
If you are using the hierarchical feature of the flexgrid, there is no equivalent that comes built-in in VS.Net.

You have to rely on 3rd party components like Telerik, Infragistics, ComponentOne, SyncFusion, ...
0
 

Author Comment

by:Jose Bredariol
ID: 23658534
I'm new in VS, but do you think I can use Datagridview can solve my problem ?

Thanks
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 23658635
If you just want to display the data from one table in a grid, it will work for sure.
0
 

Author Comment

by:Jose Bredariol
ID: 23658752
OK, I'll try that. One more help. It's possible  to display fields in rows instead of colums ?
Thanks
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 1000 total points
ID: 23658804
If you mean to pivot the data, no the DataGridView cannot do it.
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question