Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Textbox Databinding using 2 BindindingSources

$
0
0

Using VS 2017 Community for a Windows Forms Application based on Access Database

My Main form displays data for a single Table (DayBook Customer Requests) using a DataAdapter/BindingSource combination (DADayBook and BSDayBook).

The DayBook table has relationships with other tables from the Access dB with the DayBook Table storing Foreign Key values from those related tables.

I use other BindingSources eg. BSStatus to provide the data to display data from the related tables where;

Status Table has

PK_StatusId as Autonumber

Status_Description as Short Text

DayBook Tables stores

FK_StatusId as Number

I can use ComboBoxes to display the required Status_Description on my form by binding the combobox to BSStatus and also creating a new binding ("selectedvalue",BSDayBook,"FK_StatusId) and adding that to the combobox.

Instead of using a combobox I would like to use a Textbox to display Status_Description as I do not wish to enable the displayed value to be changed by the user.  

Can this be done and if so can you point me to the solution.

Thanks.


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>