C# and Database Programming

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.

...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top