DataRelation and DataGridView


R

rene.marxis

Hello

i have some DataGridView which is bound to some BindingSource.
The date consists of customerdata. Every customer has some status
saved in one field id_status in the customer table.

I'd like to use the databinding for the grid and display just a subset
of the Customer data in the grid (name/forename). Till now i do hide
the cols not needed by myself (ColHidden)

I also like to show the status of the customer in the grid as a Text.
The data comes from a lookup table (statuses) Therefore i build up a
dataset which holds both tables and also created a relation inside the
dataset.

My question: How can i build this relation to eg. a combobox inside
the grid, or at least display the text of the related status and not
the id_status?
Can i use some DataView therefore?

PS: The data is not editable in the grid, but with some textboxes and
combos beside the grid. Databinding for the combobox/textboxes there
works ok.

_thanks in advance

rene
 
Ad

Advertisements


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

Top