473,395 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Data from datagrid to textbox in another form

How do I order the value of the selected cell in a datagrid to textbox in another form
Apr 17 '12 #1
1 2594
RhysW
70
Expand|Select|Wrap|Line Numbers
  1. textbox1.text = formname.datagridname.selectedcells[0].value
this goes on the form where the textbox is, the datagrid modifier would have to be public not private for this to work. Fill in the blanks as you need

(selectedcells[] is an array of all the selected cells, 0 being the very first one in the array, im assuming this is the one you want to use, else change the number 0 to its relevant position remembering that the array is zero-based)
Apr 18 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Vijaya | last post by:
Can we bind data to textbox in a headertemplate in a template column of a datagrid? If so please give some code snippets. Thank you
2
by: Stan | last post by:
I have a dataset in one form that I instanciate there. I would like to access that dataset from another form. dim ds as new myds (myds is a dataset on the first form and is generated from a...
3
by: Young J. Putt | last post by:
I have a vb.net datagrid bound to a dataview on a windows form. I want to use the datagrid to display and filter a list of items, but since the data is complex, I don't want the user to edit the...
3
by: kingflux | last post by:
Hello, and thank you in advance for any help you can provide. Each line in our datagrid control contains a product number, description, and a textbox for the user to enter a quantity-to-order. ...
8
by: weird0 | last post by:
The scenario is that i have two forms, Form1( main form) and Form2 and both of them opened. Form1 has called Form2 inside of its constructor. class Form1 { const int NodeLimit=30; Node...
1
by: zeeshanks | last post by:
Dear Friends, I 'm running an sql query in one form which returns a data set. I want to show this data set into another form. I 'm programming in VB.NET after quite some time so totally lost on...
1
by: SePp | last post by:
Hi all. I want to refresh a Datagrid from another form. (in C# ) For Example I have a Datagrid in that I want to edit data. The user has the ability to press a button to change these data. A...
2
by: SePp | last post by:
Hi all. I want to refresh a Datagrid from another form. For Example I have a Datagrid in that I want to edit data. The user has the ability to press a button to change these data. A new Form...
2
by: Hitman | last post by:
Hi Everyone, I have a little bit of problem with my database. I have a textbox ( the name of the textbox is location) on one form and 1 command button. I also made another form with 1 textbox (the...
2
by: timr30017 | last post by:
I am new to VB.net but I am trying to recreate an old program in .net and learn as I go so any help will be greatly appreciated. I have one form with a datagrid that displays a list of 'contacts'...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.