473,395 Members | 1,670 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

combobox with data binding

GS
I created a combobox on a form, and setup project data source connection,
carted a table, a view for the table:
create view vw_Favorite as select code + '=:' + value from codetable where
codetablename= 'Favorite' and sequence 0

that went fine except it adds top (10) percent after select. I then proceed
to set data binding on the combo box, I just could not point it to the view
and get the desired result. however if I create a stored procedure, I was
able to see one row in the combobox when I run the form

what have I missed?
VB studio express 2005
-------------- the sp is defined as:

CREATE PROCEDURE dbo.FinCoUrl
as
SELECT code + '+:' + value AS Addr
FROM CodeTable
WHERE (codeTableName = 'FinCoUrl') AND (sequence 0)

/* SET NOCOUNT ON */
RETURN
create procedure sp_favorite as select code
Aug 30 '06 #1
2 1323
GS,
-------------- the sp is defined as:

CREATE PROCEDURE dbo.FinCoUrl
as
SELECT code + '+:' + value AS Addr
FROM CodeTable
WHERE (codeTableName = 'FinCoUrl') AND (sequence 0)

/* SET NOCOUNT ON */
RETURN

This is SQL transact language code for that are special newsgroups.

This newsgroup is about the .Net VB language code.
Not all what can be used in Visual studio even if that is limited to VB
Express

Cor
"GS" <gs**********************@msnews.Nomail.comschre ef in bericht
news:uU**************@TK2MSFTNGP05.phx.gbl...
>I created a combobox on a form, and setup project data source connection,
carted a table, a view for the table:
create view vw_Favorite as select code + '=:' + value from codetable where
codetablename= 'Favorite' and sequence 0

that went fine except it adds top (10) percent after select. I then
proceed
to set data binding on the combo box, I just could not point it to the
view
and get the desired result. however if I create a stored procedure, I was
able to see one row in the combobox when I run the form

what have I missed?
VB studio express 2005
-------------- the sp is defined as:

CREATE PROCEDURE dbo.FinCoUrl
as
SELECT code + '+:' + value AS Addr
FROM CodeTable
WHERE (codeTableName = 'FinCoUrl') AND (sequence 0)

/* SET NOCOUNT ON */
RETURN
create procedure sp_favorite as select code


Aug 31 '06 #2
GS
thx, I see you mentioned in another thread an easier way to fill a combo
box instead of using the somewhat flaky vb express 2005 design time
facility.

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:ut**************@TK2MSFTNGP02.phx.gbl...
GS,
-------------- the sp is defined as:

CREATE PROCEDURE dbo.FinCoUrl
as
SELECT code + '+:' + value AS Addr
FROM CodeTable
WHERE (codeTableName = 'FinCoUrl') AND (sequence 0)

/* SET NOCOUNT ON */
RETURN


This is SQL transact language code for that are special newsgroups.

This newsgroup is about the .Net VB language code.
Not all what can be used in Visual studio even if that is limited to VB
Express

Cor
"GS" <gs**********************@msnews.Nomail.comschre ef in bericht
news:uU**************@TK2MSFTNGP05.phx.gbl...
I created a combobox on a form, and setup project data source connection,
carted a table, a view for the table:
create view vw_Favorite as select code + '=:' + value from codetable
where
codetablename= 'Favorite' and sequence 0

that went fine except it adds top (10) percent after select. I then
proceed
to set data binding on the combo box, I just could not point it to the
view
and get the desired result. however if I create a stored procedure, I
was
able to see one row in the combobox when I run the form

what have I missed?
VB studio express 2005
-------------- the sp is defined as:

CREATE PROCEDURE dbo.FinCoUrl
as
SELECT code + '+:' + value AS Addr
FROM CodeTable
WHERE (codeTableName = 'FinCoUrl') AND (sequence 0)

/* SET NOCOUNT ON */
RETURN
create procedure sp_favorite as select code


Aug 31 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bruce | last post by:
Hi, there, I meet a problem about comboBox binding. -------------------- Database: Northwind Tables: 1) Products 2) Categories I create a form (named "form1") to edit the record from...
2
by: SKarnis | last post by:
We are trying to rebuild a current Access 2002 (XP) mdb program to VB.NET with a SQL database - we are having problems with a suitable combobox. There are many threads discussing multiple column...
3
by: amber | last post by:
Hello, I have 6 comboboxes, that I thought I could bind to the same datasource, and have them display different 'selectedvalue's', but apparently I can't... My code is as follows: dim drv as...
6
by: dbuchanan | last post by:
VS2005 I've been reading all the help I can on the topic (MSDN, other) but I can't make sense of this. Desired behavior; The user is to choose from the displayed list of the databound combobox...
2
by: shumaker | last post by:
I have a combobox that is very much like the one found in the RSS project here: http://msdn.microsoft.com/vstudio/express/visualCSharp/learning/ My projectNameComboBox basically is filled with a...
5
by: Joe | last post by:
Hi I am adding a class to a ComboBox - and all is fine except that I fill the combobox on the Form_Load Method and it causes the method private void comboBox2_SelectedIndexChanged(object...
0
by: Frnak McKenney | last post by:
Can I use a bound ComboBox for both browsing and editing? I'm working on a small, standalone database application using Visual C#.NET 2003 and an Access data file. In order to keep the number...
19
by: active | last post by:
I'm using a ComboBox to display objects of a class I've defined, say CQQ. Works great except somehow I occasionally set an Item to a String object instead of an object of type CQQ. It looks...
3
by: Przemek M. Zawada | last post by:
Dear Group, I'm developing sample window form, using DataGridView control, which is filled with data through BindingSource, which is based on type of object, as follow: public sampleClass {...
3
by: Simon Tamman | last post by:
I've come across an interesting bug. I have workarounds but i'd like to know the root of the problem. I've stripped it down into a short file and hope someone might have an idea about what's going...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.