By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,996 Members | 884 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,996 IT Pros & Developers. It's quick & easy.

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

P: 48
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, 194 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")

Share this Question
Share on Google+
2 Replies


P: 48
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

100+
P: 299
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

Post your reply

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