sql - Bind textbox to a relation generated datagrid view -


i have 2 datagrids in master - detail relation. in dataset designer added relation between 2 tables. then, @ form load, added following code:

    dgvmagheader.datasource = nav_vermorel_livedataset     dgvmagheader.datamember = "sc vermorel srl$magheader"     dgvmaglines.datasource = nav_vermorel_livedataset     dgvmaglines.datamember = "sc vermorel srl$magheader.relatie" 

all worked far, dgvmaglines displays records meet relation between tables.

but want bind textbox field dgvmaglines datagrid view. , textbox isn't updating when browse thru records. bind using databinding property of textbox, designer. tried bind @ form_load:

  dim binding = new bindingsource()     {binding.datasource = nav_vermorel_livedataset.tables("_sc_vermorel_srl_maglines")}         dgvmaglines.datasource = binding         txtqty.databindings.add("text", binding, "sc vermorel srl$magheader.relatie")     end 

it says " datamember property 'sc vermorel srl$magheader' cannot found on datasource."

can point me in direction?


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -