473,387 Members | 1,834 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,387 software developers and data experts.

make data grid view pop up on form after button is clicked

i have a form that includes zip code and service method. i also created a button. when i click the button, i want another window to pop up and show me my results based on the information that i entered. the results need to be in a data grid view. how do i make this happen?
Attached Files
File Type: docx help.docx (419.6 KB, 263 views)
Sep 10 '15 #1

✓ answered by Luk3r

If the DataGridView lives on another form, simply call the DataGridView like this:
Expand|Select|Wrap|Line Numbers
  1. Form2.DataGridView1.Rows.Add("Some Text")

2 1815
i have figured out a way to make the form come up with a button. Now, how would i be able to add the data grid view to the form based on the information received from the first form
Sep 10 '15 #2
Luk3r
300 256MB
If the DataGridView lives on another form, simply call the DataGridView like this:
Expand|Select|Wrap|Line Numbers
  1. Form2.DataGridView1.Rows.Add("Some Text")
Sep 10 '15 #3

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

Similar topics

2
by: Joe Griffith | last post by:
I'm using a Win Forms Data Grid View control in unbound mode. When I add columns using the wizard the first item is the column name. Everything works fine. However, if you return to the...
0
by: Gian Paolo | last post by:
this is something really i can't find a reason. I have a form with a tabcontrol with tree pages, in the second page there is a Data GRid View. Plus i have a class. When i open the form i...
2
by: Dilanka | last post by:
I want to double click on the particular data item in data grid view and get that those values to another form can somebody tell me how can i do this? i'm using visual studio .net 2005 and the...
0
by: nanaalwi | last post by:
hi there, im doing a project right now to download a data from EEPROM of a camcorder. i used a 'data grid view' to display all the data downloaded from the camcorder. however, i have to save the...
0
by: sumaira_it | last post by:
Hi I am building window forms application. i have made a design time data grid. I populated the data grid on form load by fill method of adapter (Where Column1 = 1). I want that when i click on...
2
by: jakeesgirl | last post by:
I'm creating a C# program in Visual Studio. When I query the sql database, the results are put into a data grid view. However, the column widths are always too small when displayed. I have text that...
1
by: mcupito | last post by:
I am trying to populate a data grid view based off of two text boxes, Start date and End date. I am not sure how to work with DataGridViews or DataSets. So if textbox1.text = x/x/2013 and...
0
by: jaseem0712 | last post by:
I have a data grid view like this: http://bytes.com/attachment.php?attachmentid=7458&stc=1&d=1390739933 i am loading data grid view like this: Dim cd As SqlCommandBuilder = New...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.