Solved

Binding DataCombo RowSource and DataSource in C++

Posted on 2001-09-13
6
351 Views
Last Modified: 2013-11-20
I'm trying to find a combo control which has the following properties: The RowSource used to retrieve data, and the DataSource to apply data. MS DataCombo in VB is ok but in C++, it doesn't expose the DataSource property, so i cannot use it. How can it be that the same control has different properties in VB and in C++, and how can i resolve this problem ?
0
Comment
Question by:aviasi
  • 3
  • 2
6 Comments
 
LVL 49

Accepted Solution

by:
DanRollins earned 75 total points
ID: 6481817
>>it doesn't expose the DataSource
The trick is to provide an ADO Data Control in the same dialog.  You can link the two controls and then change the datasource at will.  Also you can make the data control hidden.

-- Dan
0
 
LVL 1

Expert Comment

by:MRNMurthy
ID: 6482750
Hi,

I will try once & mail back my comments, but one of the way is to create an ActiveX control in VB using the combo control which has required properties, Then use that ActiveX control in VC++ I think this should work.

From

MRN Murthy
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6496266
hi aviasi,
Do you have any additional questions?  Do any comments need clarification?

-- Dan
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:aviasi
ID: 6503240
I provided the ADO data control as a hidden control,
and i can set the data source at run time,
through the recordset of the ado object,
but the data field is still missing that way.
Can you tell me how can i set the data field ?
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6504382
>>Can you tell me how can i set the data field ?

I don't understand this question.  Can you rephrase it?  Do you need help in reading a data item from a recordset?

-- Dan
0
 

Author Comment

by:aviasi
ID: 6504733
No, The DataField property in bound control sets the cursor of the recordset on the right record. Also when you specify a DataField with a DataSource, this is the field to be updated ( The RowSource is a readonly snapshot ).
My wish is to have a DataBound control which has full support of RowSource and DataSource. It is easly done in VB, but in VC it can be done in DesignTime only ( in the Ado property page ) and not in RunTime.


By the way - Thanks for your help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now