Solved

Binding DataCombo RowSource and DataSource in C++

Posted on 2001-09-13
6
350 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Expand to include initial dialog with two choices. 9 59
sameEnds challenge 3 107
fizzArray  challenge 1 49
Not needed 13 58
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…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

747 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

9 Experts available now in Live!

Get 1:1 Help Now