473,387 Members | 1,700 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,387 software developers and data experts.

C# and Database Programming

Hey guys,

I'm writing an application and I'm very frustrated right now. What I
want to be able to do is have a form (regular Windows application), and have
a series of drop-downs.

What I'm doing right now, is running queries, and individually populating
the boxes with the data. What I would MUCH RATHER do, is have those drop-down
"combo-boxes" linked to a dataset. I want to be able to select an item in the
combo-box and then have access to the actual identifier (guid) instead of the
text.

Does anyone have any good references they can show me (links) that might
help me achieve this? I'm very frustrated...
thanks...

Todd
Nov 17 '06 #1
3 1094
Hi Tood, hope this help you

http://www.codeproject.com/cs/miscctrl/DataGridZen.asp
http://mmofx.com/code.aspx?K=DATA
http://www.akadia.com/services/dotnet_databinding.html

Regards

"Todd Jaspers" <To*********@discussions.microsoft.comescribió en el
mensaje news:2A**********************************@microsof t.com...
Hey guys,

I'm writing an application and I'm very frustrated right now. What I
want to be able to do is have a form (regular Windows application), and
have
a series of drop-downs.

What I'm doing right now, is running queries, and individually populating
the boxes with the data. What I would MUCH RATHER do, is have those
drop-down
"combo-boxes" linked to a dataset. I want to be able to select an item in
the
combo-box and then have access to the actual identifier (guid) instead of
the
text.

Does anyone have any good references they can show me (links) that might
help me achieve this? I'm very frustrated...
thanks...

Todd

Nov 17 '06 #2
Not to sound like a broken MP3, but have you looked at the QUICKSTARTS?
The one for Windows Forms covers all this stuff:

http://samples.gotdotnet.com/quickstart/winforms/

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Todd Jaspers" wrote:
Hey guys,

I'm writing an application and I'm very frustrated right now. What I
want to be able to do is have a form (regular Windows application), and have
a series of drop-downs.

What I'm doing right now, is running queries, and individually populating
the boxes with the data. What I would MUCH RATHER do, is have those drop-down
"combo-boxes" linked to a dataset. I want to be able to select an item in the
combo-box and then have access to the actual identifier (guid) instead of the
text.

Does anyone have any good references they can show me (links) that might
help me achieve this? I'm very frustrated...
thanks...

Todd
Nov 17 '06 #3
Todd,

The biggest thing you have to remember is that you put OBJECTS into the
comboboxes, not key/value pairs.

So you need to pull the object, and then cast it, to get the correct value.

If its populated from a DataSet, then its a DataRow or something.

If its a strongly typed DataSet, then you'll have an actual SomeEntityRow
object.

...
"Todd Jaspers" <To*********@discussions.microsoft.comwrote in message
news:2A**********************************@microsof t.com...
Hey guys,

I'm writing an application and I'm very frustrated right now. What I
want to be able to do is have a form (regular Windows application), and
have
a series of drop-downs.

What I'm doing right now, is running queries, and individually populating
the boxes with the data. What I would MUCH RATHER do, is have those
drop-down
"combo-boxes" linked to a dataset. I want to be able to select an item in
the
combo-box and then have access to the actual identifier (guid) instead of
the
text.

Does anyone have any good references they can show me (links) that might
help me achieve this? I'm very frustrated...
thanks...

Todd

Nov 17 '06 #4

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

Similar topics

2
by: A Cate | last post by:
I am new to PHP. I am trying to develop a web site on a development machine that needs to access data in a mysql database. I have mysql running on my development machine with a copy of the...
0
by: John Davis | last post by:
I always heard the term "data/database driven programming" model in ASP database, SQL programming, and web programming circles. But I don't quite sure what does it mean? Does it mean the web...
2
by: hplloyd | last post by:
I am fairly new to VB.NET programming but have built many database applications in Access SQL Server etc. I need to find a good book or other reference material that will help me take my OO...
6
by: Randy Yates | last post by:
Hi Folks, I'm looking for something that is completely independent of the MSVC++ Dev Studio environment, something that will compile and run under win32 using the mingw distribution. A class...
3
by: Alan | last post by:
I am coming from other programming tools field, and new to VB .NET. Just wondering what is the common approaching in database programming in VB .NET? 1) Are you guru always using the data aware...
3
by: jaYPee | last post by:
i am searching a lot of resources in the net that discusses about database programming. i'm still searching on it and would like to received any links that discusses about database programming in...
1
by: Dave | last post by:
Hi, I work on a small team that currently uses an access 97 database for managing peoples time. The database front end is heavily implemented in VBA and is secured with user level security,...
8
by: Maxi | last post by:
Hello, i'm sorry my bad english :( I have CR9 Webservice, how to change databadse name and User_name into Webservice method? (not Viewer Control) Tks!! -- --------------------------
2
by: webcm123 | last post by:
People say that structural programming isn't good for database connection. I code fast-running structural oriented CMS and I don't know what I should do. I use mysql connection using mysql_*. I...
4
by: triton96 | last post by:
I want to get in to programming but would like your input on a couple of things: I would like to write some basic applications that would for example create a payroll check or create a billing for...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.