|
-
Dec 8th, 2003, 03:01 PM
#1
Thread Starter
Fanatic Member
Dynamic Databindings
I have a combo box that lists 2 tables. When a table name is selected, a datagrid's datasource is then set and the datagrid is populated with the respecitve table's data. My question is, what is the best way to link (databind) a label's text property to the current position's value for a certain field? For example, if there is an ID field in the table and the table has 3 records and each record's ID values are as follows:
Record 1 (position 0) ID='A'
Record 2 (position 1) ID='B'
Record 3 (position 2) ID='C'
When I click in the datagrid, I want my label to reflect the current position's value, so if I click in record 2 (position 1), I want my label to say 'B' etc.
What is the best way to accomplish this?
THanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|