Solved

Binding DataCombo RowSource and DataSource in C++

Posted on 2001-09-13
6
354 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Perl Awk Need Help 3 128
sum67 challenge 35 107
has77  challenge 9 87
Problem to open Excel file 15 170
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

792 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