[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Binding DataCombo RowSource and DataSource in C++

Posted on 2001-09-13
6
Medium Priority
?
363 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 49

Accepted Solution

by:
DanRollins earned 300 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

656 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