Binding a specific record
Posted on 2006-06-29
I am trying to create a control panel type application that gets lists of items and sub-items from a webservice and puts them into a dataset. Then the application parses through them to generate ListViewItems with a two part tags e.g. "CNT:ESP" (so I know what to do when its clicked because some are folders and some are items, the example is "Country" and "Spain").
When called I want to call a specific record into a form so items can be changed but I can't get my head around binding with a key rather than a position... especially as some of forms need to access lookup data via a relationship.
Tables look like this:
code (EUR/USD/GBP etc)
name (Euro, US Dollar, British Point etc)
name (Spain, United States, Great Britain)
currency_code (EUR/USD/GBP lookup)
Say for example my user opens the form and wants to see "Spain", how? The tag for the item s/he opens would be CNT:ESP