.NET Textbox and databinding

N

Nikerz Inc

Hello everyone,

Can someone help with this idea,

Textbox1.text = mydataset.consumer.address

Consumer is my table and address is the feild!!! Thx! I want to retreive
and update information from that textbox using OLEDB adapters.
 
N

Nikerz Inc

Hi there!

Nope not yet!!! I've been doing some research but so far I can't find any
detailed information as to my goal.


Alvin Bruney said:
Your post went unanswered. Have you resolved this issue?

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Nikerz Inc said:
Hello everyone,

Can someone help with this idea,

Textbox1.text = mydataset.consumer.address

Consumer is my table and address is the feild!!! Thx! I want to retreive
and update information from that textbox using OLEDB adapters.
 
A

Alvin Bruney [MVP]

Your syntax is incorrect since a dataset has tables which in turn contain
rows, it doesn't know which row of which table you are asking it to display.

Use this instead
TextBox1.Text = mydataset.consumer[0].Rows[row][column].ToString()

this assigns a specific field in the default consumer table at the specified
row given by the coordinate (row,column).

hth

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Nikerz Inc said:
Hi there!

Nope not yet!!! I've been doing some research but so far I can't find any
detailed information as to my goal.


Alvin Bruney said:
Your post went unanswered. Have you resolved this issue?

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Nikerz Inc said:
Hello everyone,

Can someone help with this idea,

Textbox1.text = mydataset.consumer.address

Consumer is my table and address is the feild!!! Thx! I want to retreive
and update information from that textbox using OLEDB adapters.
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top