Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / August 2006

Tip: Looking for answers? Try searching our database.

Databinding datagridview to textbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Scotty - 06 Aug 2006 09:47 GMT
Hi,

I am a beginner,

like to working with ado net
I have a datagridview

If i selecting a row in the datagrid i want to have returning the selected
data into a textbox "name" for example  "from the column "name"  "

Hope someone can help me

Thanks in advance
Marc
Brian Tkatch - 07 Aug 2006 14:01 GMT
> Hi,
>
[quoted text clipped - 10 lines]
> Thanks in advance
> Marc

Use DataBindings.

Something like:

textBox1.DataBindings.Add("Text", DataGridView.DataSource, "name")

B.
Cor Ligthert [MVP] - 07 Aug 2006 16:31 GMT
Scotty,

Have a look at this sample,
http://www.vb-tips.com/dbpages.aspx?ID=5f4a0f68-a3b6-4fc8-8aff-587f730fa118

I hope this helps,

Cor

> Hi,
>
[quoted text clipped - 10 lines]
> Thanks in advance
> Marc

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.